use-null-ref 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)