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

Function next

src/UncontrolledCarousel.js:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 next() {
42 if (this.animating) return;
43 this.setState((prevState) => {
44 const nextIndex =
45 prevState.activeIndex === this.props.items.length - 1
46 ? 0
47 : prevState.activeIndex + 1;
48 return { activeIndex: nextIndex };
49 });
50 }
51
52 previous() {
53 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…