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

1.0.4 • Public • Published

use-null-ref

npm build publish Libraries.io dependency status for latest release Bundlephobia npm

Super simple hook for eslint-plugin-no-null users

Getting started

$ npm i use-null-ref

Overview

import { useRef } from 'react'

export const useNullRef = <T>() => useRef<T>(null)

Readme

Keywords

Package Sidebar

Install

npm i use-null-ref

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

4.38 kB

Total Files

10

Last publish

Collaborators

  • iyegoroff