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

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

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