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

Function previous

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

Source from the content-addressed store, hash-verified

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