This is a Infinite Scroll component in React. . The component's functionality is demonstrated using the Art Institute of Chicago's API and Cats API.
Visit: https://agnieszkastanczuk.github.io/infinite-scroll-reactjs/
- Smooth Scrolling Down: Users can smoothly scroll down the page, triggering in automatic retrievel of new records as needed.
- Scrolling Up: Scrolling up allows users to go back to previously fetched pages with records.
- Dynamic Updates: If there are changes in the fetched records, the project automatically updates the displayed data.
- Multi-API Support: The Infinite Scroll component has been tested with different APIs, including the Art Institute of Chicago's API and Cats API.
- React.js
- TypeScript
- axios
- SCSS
To run the "Infinite Scroll React.js component" project on your local machine, follow these steps:
-
Clone the Repository: Open your terminal or command prompt. Navigate to the directory where you want to store the project. Run the following command to clone the repository:
Replace <repository_url> with the URL of your Git repository.
-
Install Dependencies: Navigate to the project's root directory. Run the following command to install the required dependencies:
This will install React.js and any other dependencies specified in the package.json file.
-
Start the Development Server: After installing dependencies and configuring the API key, you can start the development server by running the following command:
This will start the React development server, and your app will be available at http://localhost:3000 in your web browser.
-
Use the Infinite Scroll: Open your web browser and navigate to http://localhost:3000. You will see the "Infinite-scroll-app" in action. As you scroll down the page, new news articles will be fetched automaticall
This project is part of the recruitment task and I plan to further improve and develop it after the recruitment process.
To do:
- Search bar implementation
- Better design, animations and user experience
- Documentation
- Testing