A useRef React hook that supports lazy initialization.
npm install uselazyrefuseRef to support lazy initialization. So far, lazy init is supported by useState, but not useRef. Once React updates useRef, this package becomes deprecated.
useRef instead.
const ref = useLazyRef(() => expensiveComputation());
``