Tom Posted on Jun 9, 2021 How to type useRef? #react #typescript This is more for personal reference: const ref = useRef<HTMLDivElement>(null); ... <div ref={ref}> Enter fullscreen mode Exit fullscreen mode Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)