use-lifecycle-ref (npm): Like useRef, but with lifecycle and ref merging support
Keywords: use-ref|ref|react|react-dom|lifecycle