1.4.0 ā€¢ Published 4 years ago

react-covid-hooks v1.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

šŸ“ˆ Statistics for šŸ¦  COVID19 harnessing the power of āš›ļø React Hooks

NPM JavaScript Style Guide License: MIT contributions welcome

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

ā›“ļø Connect

1.4.0

4 years ago

1.1.0

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago