This is a simple Load More Data component built using React. It fetches product data from an API and displays the products. The component includes a button to load more products, and it disables the button once 100 products have been loaded.
- Fetches and displays product data from an API
- Implements a "Load More" button to fetch additional products
- Disables the "Load More" button once 100 products have been loaded
- Uses React
useState
anduseEffect
hooks for managing state and side effects
-
Clone the repository:
git clone https://github.com/Piyushchannawar/React-Mini-Projects.git cd Load-More-Data
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5147
.
This component fetches product data from the DummyJSON API and displays the products. Click the "Load More Products" button to load additional products. The button will be disabled once 100 products have been loaded.