https://github.com/at0g/hooks
A utility library of useful react hooks
https://github.com/at0g/hooks
hooks-api-react react simple-api utilities
Last synced: 10 months ago
JSON representation
A utility library of useful react hooks
- Host: GitHub
- URL: https://github.com/at0g/hooks
- Owner: at0g
- License: mit
- Created: 2019-11-01T09:30:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:56:19.000Z (about 3 years ago)
- Last Synced: 2025-04-15T18:49:42.120Z (11 months ago)
- Topics: hooks-api-react, react, simple-api, utilities
- Language: JavaScript
- Homepage: https://at0g.github.io/hooks/
- Size: 2.18 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hooks for react







[](https://codeclimate.com/github/at0g/hooks/maintainability)
[](https://codeclimate.com/github/at0g/hooks/test_coverage)
[](https://github.com/prettier/prettier)

### installation
npm
```
npm i -S @upr/hooks
```
browser
```
```
### usage
```
import React from 'react'
import { useOffline } from '@upr/hooks'
export default () => {
const fallbackValue = false
const offline = useOffline(fallbackValue)
return <>{offline && 'Offline'}>
}
```