Skip to content

Latest commit

 

History

History
104 lines (60 loc) · 4.01 KB

README.md

File metadata and controls

104 lines (60 loc) · 4.01 KB



📈 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

GitHub @mrsaeeddev  💻 Want to get updated on latest trends in Open Source? Follow me on GitHub!

Twitter @mrsaeeddev  🐦 Want to get help or discuss something? Get connected on Twitter!

DEV @mrsaeeddev  📖 Want to read my articles? Visit my DEV blog!

LinkedIn @mrsaeeddev  🏢 Want to see my professional journey? Let's Connect on LinkedIn