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

Function next

stories/examples/Carousel/CustomTagExample.js:32–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 const [animating, setAnimating] = useState(false);
31
32 const next = () => {
33 if (animating) return;
34 const nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1;
35 setActiveIndex(nextIndex);
36 };
37
38 const previous = () => {
39 if (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…