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

Function previous

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

Source from the content-addressed store, hash-verified

39 };
40
41 const previous = () => {
42 if (animating) return;
43 const nextIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1;
44 setActiveIndex(nextIndex);
45 };
46
47 const goToIndex = (newIndex) => {
48 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…