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

Function next

stories/examples/Carousel/CarouselExample.js:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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