![]() |
VOOZH | about |
This article is about building a Dashboard with Dynamic Data Updates using useEffect hook. In this project, I have used a weather API that fetches weather details of different cities. I took five cities fetched the weather data of each city in 6-second intervals and displayed the weather details on the dashboard.
Step1: create the react app using the command
npx create-react-app weather-app
cd weather-app
Step2: Install the required dependencies
npm install react-bootstrap bootstrap
npm install axios
The updated dependencies in package.json file looks like this:
Example: To demonsrtate building a dashboard with dynamic data updates using useEffects.
To Start Project:
npm startOutput: