To set up this project on your local machine, follow these steps:
git clone https://github.com/rohan-singh987/infinitescroll
# Navigate to the project directory:
cd infinitescroll
# Install dependencies:
npm install
npm run dev
src/
: Source codecomponents/
:- CardComp : Maping through the array of object we have fetched from api and passing those data as a prop tp CardDetail
- CardDetal : Arranging Data into card
- Loading : Loader component to display till api fetches the data
Container/
:- Home : Handling infinteScroll function and fetching data from api and passing fetched data to CardComp
- Card : Dynamic page triggers when User click on a particular card at Home page, it will redirect to the Card page with content of that particular id
Context/
:- DataContext : Using ContextApi hook of react it crates a context
- DataState : Used to manage State at top level of application and provide those state directly to different components of application
public/
: Static assets