1.4.0 ā¢ Published 4 years ago
react-covid-hooks v1.4.0
š 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