Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeshake/react-deep-hooks
React hooks for non-primitive dependencies
https://github.com/codeshake/react-deep-hooks
Last synced: 3 months ago
JSON representation
React hooks for non-primitive dependencies
- Host: GitHub
- URL: https://github.com/codeshake/react-deep-hooks
- Owner: codeshake
- Created: 2021-06-25T12:10:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T18:07:14.000Z (over 1 year ago)
- Last Synced: 2024-04-25T18:01:13.015Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 24.4 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-react-hooks - `react-deep-hooks` - primitive dependencies. (Packages)
- awesome-react-hooks-cn - `react-deep-hooks` - primitive dependencies. (Packages)
- awesome-react-hooks - `react-deep-hooks` - primitive dependencies. (Packages)
- awesome-react-hooks - `react-deep-hooks` - primitive dependencies. (Packages)
README
# react-deep-hooks
Use React hooks with arrays, objects, etc
[![npm version](https://img.shields.io/npm/v/react-deep-hooks.svg?style=for-the-badge&logo=appveyor)](https://www.npmjs.com/package/react-deep-hooks)
[![npm downloads](https://img.shields.io/npm/dm/react-deep-hooks.svg?style=for-the-badge&logo=appveyor)](https://www.npmjs.com/package/react-deep-hooks)## Installation
```bash
npm i react-deep-hooks --save
```## Usage
All passing arguments as in native [`React Hooks`](https://reactjs.org/docs/hooks-intro.html)
### Hooks list
- useDeepEffect => useEffect
- useDeepMemo => useMemo
- useDeepCallback => useCallback
- useDeepImperativeHandle => useImperativeHandle
- useDeepLayoutEffect => useLayoutEffect