
Why It Was Built
With so many detailed dashboards available, I wanted a quick and simple way to check the critical numbers without sifting through too much data. It also provided a fun opportunity to practice React
and API calls.
How It Works
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.