This is a simple project using React. There are some data where a person's id, name, age, and image are available. We just want to fetch the data and load it using useState
. With a button, we can clear all the persons from our array.
Here is live link : Birthdat-list-using-useState
Here is the link of the project: Birthdat-list-using-useState
To get a local copy up and running, follow these steps:
- Node.js and npm installed on your machine
- Clone the repository:
git clone https://github.com/Ashique01/Birthdat-list-using-useState.git
- Navigate to the project directory:
cd Birthdat-list-using-useState
- Install the dependencies:
npm install
- Start the development server:
npm start
- Open the application in your web browser by visiting
http://localhost:3000
.
The project showcases the following features:
- Fetching and displaying a list of people's information.
- Utilizing the
useState
hook to manage the state of the person array. - Rendering the person's id, name, age, and image using React components.
- Implementing a button to clear all the persons from the array.
Feel free to explore the code and modify it according to your requirements.
- React
- JavaScript
- HTML
- CSS