This project demonstrates an infinite scroll feature in a React application using scroll events. More items are dynamically loaded as the user scrolls to the bottom of the page.
- Dynamic loading of items on scroll
- React state management
- Loading indicator during fetch
- InfiniteScroll: Manages the scroll logic and item state.
- Item: Renders individual items.
- Loading: Displays a loading indicator.
-
Clone the repository:
git clone https://github.com/abhisheksharma571/Infinite-Scroll.git cd infinite-scroll
-
Install dependencies::
npm install
-
Run the application::
npm run dev