Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Installed
react@^19.2.0
react-dom@^19.2.0

Responsive Slideshow in ReactJS

Prompt

Build an auto-playing responsive image slideshow with previous/next navigation buttons and dot indicators showing the current slide index. The slideshow loops infinitely. Auto-play must pause on user hover.

Store currentIndex in useState. Auto-play with setInterval inside useEffect; return cleanup to clearInterval on unmount. Navigate with modulo: (currentIndex + 1) % images.length. Dots render as an array of circles with filled style for active index.
Test Results

Responsive Slideshow in ReactJS

Build an auto-playing responsive image slideshow with previous/next navigation buttons and dot indicators showing the current slide index. The slideshow loops infinitely. Auto-play must pause on user hover.