Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrsaeeddev/react-covid-hooks
📈 Get Statistics for 🦠 COVID19 Harnessing the Power of ⚛️ React Hooks
https://github.com/mrsaeeddev/react-covid-hooks
corona coronavirus coronavirus-analysis coronavirus-globaloutbreak coronavirus-info coronavirus-real-time coronavirus-tracking covid-19 covid19 hooks hooks-api hooks-api-react react react-hooks reactjs
Last synced: about 2 months ago
JSON representation
📈 Get Statistics for 🦠 COVID19 Harnessing the Power of ⚛️ React Hooks
- Host: GitHub
- URL: https://github.com/mrsaeeddev/react-covid-hooks
- Owner: mrsaeeddev
- License: mit
- Created: 2020-04-06T09:34:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:50:10.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T12:55:00.434Z (2 months ago)
- Topics: corona, coronavirus, coronavirus-analysis, coronavirus-globaloutbreak, coronavirus-info, coronavirus-real-time, coronavirus-tracking, covid-19, covid19, hooks, hooks-api, hooks-api-react, react, react-hooks, reactjs
- Language: JavaScript
- Homepage: https://twitter.com/mrsaeeddev
- Size: 26.7 MB
- Stars: 24
- Watchers: 2
- Forks: 1
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
📈 Statistics for 🦠 COVID19 harnessing the power of ⚛️ React Hooks
[![NPM](https://img.shields.io/npm/v/react-covid-hooks.svg)](https://www.npmjs.com/package/react-covid-hooks) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/iamsaeeddev/react-covid-hooks/issues)
# 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](https://github.com/mrsaeeddev/react-covid-hooks/releases) tab
## ⚙️ Contributions
Contributions/PRs/Feedback is welcome
## 📔 License
This library is release under [MIT License](https://github.com/mrsaeeddev/react-covid-hooks/blob/master/LICENSE)
## ⛓️ Connect
💻 Want to get updated on latest trends in Open Source? Follow me on GitHub!
🐦 Want to get help or discuss something? Get connected on Twitter!
📖 Want to read my articles? Visit my DEV blog!
🏢 Want to see my professional journey? Let's Connect on LinkedIn