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

Image Auto Carousel in React

Prompt

Build an auto-playing image carousel with manual prev/next navigation buttons and dot indicators. Images cycle automatically every N seconds (configurable). Hovering over the carousel must pause the auto-play. Manual navigation must also work during pause. Supports infinite looping.

Use setInterval in useEffect for auto-advance. Clear interval on hover (onMouseEnter → pause
Test Results

Image Auto Carousel in React

Build an auto-playing image carousel with manual prev/next navigation buttons and dot indicators. Images cycle automatically every N seconds (configurable). Hovering over the carousel must pause the auto-play. Manual navigation must also work during pause. Supports infinite looping.