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

https://github.com/null-none/hook-react

React custom hooks
https://github.com/null-none/hook-react

functions hook hooks react reactjs

Last synced: about 1 year ago
JSON representation

React custom hooks

Awesome Lists containing this project

README

          

# hook-react
React custom hooks

## Installation

```bash
npm install hook-react
```
or
```bash
yarn add hook-react
```

## Hooks
- useMemoCompare
- useRouter
- useEventListener
- useWhyDidYouUpdate
- useKeyPress
- useOnScreen
- usePrevious
- useWindowSize
- useHover
- useLocalStorage
- useInterval
- useTimeout
- useDebounce
- useBreakpoint
- useHeight
- useFetch
- useUpdate
- useToggle
- useArray
- useEffectOnce
- useCookies

## Examples

```javascript
import { useLocalStorage, useWindowSize } from 'hook-react';

const [name, setName] = useLocalStorage('name', 'Bob');
const size = useWindowSize();
...
```

## License
MIT

## Donation Button

[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YYZQ6ZRZ3EW5C)