ts const ref = useRef<HTMLElement>(null);
>@mattpocockuk: ElementRef is super nice.
>Here's how it can make typing useRef easier in React 🧵
>
>useRef() is basically useState({current: initialValue })[0]