react-covid-hooks
v1.4.0
Published
๐ Get Statistics for ๐ฆ COVID19 Harnessing the Power of โ๏ธ React Hooks
Downloads
12
Maintainers
Readme
๐ Statistics for ๐ฆ COVID19 harnessing the power of โ๏ธ React Hooks
react-covid-hooks
๐ Get Statistics for ๐ฆ COVID19 Harnessing the Power of โ๏ธ React Hooks
- ๐ get overall statistics, country-wise, state-wise (US) and statistics till yesterday
- ๐ฆ get overall statistics for COVID19
- ๐บ๐ธ get updated statistics for all US states
- ๐บ๏ธ get statistics for all countries of the world
- โฎ๏ธ get updates statistics for yesterday
- ๐ For overall statistics, Data : updated (Time Stamp), cases, todayCases, deaths, todayDeaths, recovered, active, critical, casesPerOneMillion, deathsPerOneMillion, tests, testsPerOneMillion, affectedCountries
- ๐ For all states of the US, Data : state, cases, todayCases, deaths, todayDeaths, active, tests, testsPerOneMillion
- ๐ For all countries of the world, Data : country, countryInfo, updated, cases, todayCases, deaths, todayDeaths, recovered, active, critical, casesPerOneMillion, deathsPerOneMillion, tests, testsPerOneMillion
- ๐ For statistics till yesterday, Data : country, countryInfo, updated, cases, todayCases, deaths, todayDeaths, recovered, active, critical, casesPerOneMillion, deathsPerOneMillion, tests, testsPerOneMillion
๐ฅ Install
npm install react-covid-hooks
๐ Usage
๐ All Statistics
import { useAll } from 'react-covid-hooks';
const allStats = useAll();
๐ Country-wise Statistics
import { useCountries } from 'react-covid-hooks';
const allCountries = useCountries();
๐ State-wise Statistics
import { useStates } from 'react-covid-hooks';
const allStates = useStates();
๐ Statistics till Yesterday
import { useYesterday } from 'react-covid-hooks';
const yesterdayStats = useYesterday();
๐๏ธ Changelog
Changelog exists in the releases tab
โ๏ธ Contributions
Contributions/PRs/Feedback is welcome
๐ License
This library is release under MIT License