An open API service indexing awesome lists of open source software.

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.

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)