This project was bootstrapped with Create React App.
Using the api calls from this as the backend - https://photo-generator-7si8.onrender.com/
Backend code : https://github.com/pooja-thalur/photo-generator
The application is deployed and live at : https://photo-gallery-explorer.vercel.app/
- git clone [https://github.com/pooja-thalur/photo-gallery-explorer.git]
- Install dependencies: npm install
- Start the server: npm start
- React with react-window for efficient list virtualization and performance on large datasets
- Context API to manage app-wide state (photos, filters, pagination)
- Custom hooks (useGalleryPage, etc.) to separate data logic from UI components
- Debounced infinite scrolling at 75–80% threshold to prefetch large lists smoothly
- Modular structure with clear separation of components, pages, and hooks
- Scroll logic may still call loadMore() multiple times on extremely fast scrolls
- No persistent caching, the page refresh resets the photo list
- Need to make the application responsive
- Fix the scroll issue on fast scrolls.
- Try out the SWR for data caching
- Implement E2E and unit testing