use-maintained-ref
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

use-maintained-ref

creates a ref that is kept up-to-date

NPM JavaScript Style Guide

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.

Readme

Keywords

none

Package Sidebar

Install

npm i use-maintained-ref

Weekly Downloads

8

Version

1.0.0

License

MIT

Unpacked Size

113 kB

Total Files

24

Last publish

Collaborators

  • schie