use-maintained-ref
v1.0.0
Published
creates a ref that is kept up-to-date
Downloads
11
Readme
use-maintained-ref
creates a ref that is kept up-to-date
Install
npm install --save use-maintained-ref
Usage
import * as React from 'react'
import { useMyHook } from 'use-maintained-ref'
const Example = () => {
const example = useMyHook()
return (
<div>
{example}
</div>
)
}
License
MIT © schie
This hook is created using create-react-hook.