MCPcopy Create free account
hub / github.com/devs-in-tech/DevsInTech / goToNext

Function goToNext

src/components/testimonial.js:115–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 };
114
115 const goToNext = () => {
116 setCurrent((prev) => {
117 if (prev + numVisible === testimonials.length) {
118 return 0;
119 } else {
120 return prev + 1;
121 }
122 });
123 };
124
125 return (
126 <div className="py-10">

Callers 1

startAutoCarouselFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected