0.0.1 • Published 4 years ago

@cd-react/hooks v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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