Covid tracker provides the records of COVID-19 cases globally as well as based on a selected country. We are fetching live COVID-19 data (from a public API) for the number of infected, recovered, and death cases. In addition to numeric data, results are diplayed on charts to provide better visibility. The application is fully responsive and styled using material UI.
Deployed site: https://covid-tracker-3yff7fz1f.vercel.app/
React || Material UI || CSS || Vercel
Public API used: https://covid19.mathdro.id/api
1- axios
2- react-chartjs-2 //great library for making charts
3- chart.js //needed for react-chartjs-2 to work
4- react-countup //help us make animation while counting numbers
5- classNames //classnames function takes any number of arguments (str or object) and return the truthy value associated with the key
6- @material-ui/core
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.
It is important while naming ther css files in react application, to use the prefix .module (example: Card.module.css). This naming convention confined the styling to that particular file and it does not applied on the other components. That can lead to interference and unpredictable code.