1.0.0 • Published 4 years ago
use-maintained-ref v1.0.0
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.
1.0.0
4 years ago