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

Create Responsive Slideshow Gallery in ReactJS

Prompt

Build a thumbnail-based image slideshow gallery. A main large image is shown above a row of clickable thumbnail images. Clicking a thumbnail updates the main displayed image. The layout must be fully responsive and adapt gracefully to different screen sizes using CSS grid or flexbox.

Maintain selectedIndex in useState. Map images to clickable thumbnail elements. Set selectedIndex on thumbnail click. Apply active CSS class to selected thumbnail. Use CSS grid
Test Results

Create Responsive Slideshow Gallery in ReactJS

Build a thumbnail-based image slideshow gallery. A main large image is shown above a row of clickable thumbnail images. Clicking a thumbnail updates the main displayed image. The layout must be fully responsive and adapt gracefully to different screen sizes using CSS grid or flexbox.