https://github.com/virakkhun/use
a collections of hooks.
https://github.com/virakkhun/use
browser hooks react react-dom react-hooks react-utilities utils-lib
Last synced: 9 months ago
JSON representation
a collections of hooks.
- Host: GitHub
- URL: https://github.com/virakkhun/use
- Owner: virakkhun
- License: mit
- Created: 2022-10-08T15:54:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T06:25:56.000Z (over 2 years ago)
- Last Synced: 2023-10-01T08:18:10.334Z (over 2 years ago)
- Topics: browser, hooks, react, react-dom, react-hooks, react-utilities, utils-lib
- Language: TypeScript
- Homepage: https://urh-react-hooks.vercel.app
- Size: 613 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## URH ๐ช
a small simple collections of react hooks
### ๐งช Explore
- [Doc](https://urh-react-hooks.vercel.app/)
### ๐ Prerequisite
- Latest - [React](https://reactjs.org/) ^18
### ๐ช Install
using NPM:
```bash
npm install urh-react-hooks
```
using Yarn:
```bash
yarn add urh-react-hooks
```
### ๐
Usage
```tsx
import { useOnline } from 'urh-react-hooks'
const App = () => {
const { isOnline } = useOnline()
return
{isOnline ? 'Online' : 'Offline'}
}
export default App
```
### โจ Inspired By
- [vueuse](https://vueuse.org/)
- [usehooks](https://usehooks.com/)
### ๐ฅท Crafted
- Written In [TS](https://www.typescriptlang.org/)
- Documented [tsdoc](https://tsdoc.org/)
### ๐ License
[MIT License](https://github.com/vueuse/vueuse/blob/main/LICENSE) ยฉ 2022-PRESENT [Virak Khun](https://github.com/virakkhun)