https://github.com/acejs/react-hooks
Customize react hook
https://github.com/acejs/react-hooks
Last synced: 11 months ago
JSON representation
Customize react hook
- Host: GitHub
- URL: https://github.com/acejs/react-hooks
- Owner: acejs
- Created: 2020-07-21T08:53:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T20:20:32.000Z (over 3 years ago)
- Last Synced: 2025-08-28T19:04:06.045Z (11 months ago)
- Language: JavaScript
- Size: 3.72 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react hooks
**Customize react hook**
### Installing
```shell
npm install @cd-react/hooks
// or
yarn add @cd-react/hooks
```
### Usage
```javascript
import { useRefState } from '@cd-react/hooks'
```
#### useRefState hooks
```javascript
// refValue.current is up-to-date value
const [value, setValue, refValue] = useRefState('1')
```
### Note
- Support tree shaking