MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / previous

Function previous

src/UncontrolledCarousel.js:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 previous() {
53 if (this.animating) return;
54 this.setState((prevState) => {
55 const nextIndex =
56 prevState.activeIndex === 0
57 ? this.props.items.length - 1
58 : prevState.activeIndex - 1;
59 return { activeIndex: nextIndex };
60 });
61 }
62
63 goToIndex(newIndex) {
64 if (this.animating) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…