COVID-19 Tracker
A quick and easy way to see the most important numbers at a glance.
What?
A simple dashboard to check daily COVID-19 case numbers. Showing total active cases, total confirmed, total deaths and total recovered.
Why?
There are plenty of COVID-19 dashboards out there, with plenty of information to dissect and digest. But sometimes, I just want a quick look at the most pertinent numbers. I also wanted to practice some React and API requests and figured this was a fun and relevant way to do it.
How?
In React.js, I made an API call to the COVID-19 API. That data is stored in the application’s state, which also contains a “loaded” boolean that is false by default. Once the data is fetched, it changes to true and the dashboard appears. This is to prevent the application from displaying zero values before the data is retrieved.