@cd-react/hooks
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

react hooks

Customize react hook

Installing

npm install @cd-react/hooks
// or
yarn add @cd-react/hooks

Usage

import { useRefState } from '@cd-react/hooks'

useRefState hooks

// refValue.current is up-to-date value
const [value, setValue, refValue] = useRefState('1')

Note

  • Support tree shaking

Readme

Keywords

none

Package Sidebar

Install

npm i @cd-react/hooks

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

2.88 kB

Total Files

5

Last publish

Collaborators

  • xukang