All React-hooks posts
TypeScript: Typing React UseRef Hook
Updated on · 3 min read|Typing useRef hook in TypeScript seems to be straightforward from the first glance, however there are a few issue that can make it a bit cumbersome. In this article we'll take a look at how to properly type the hook for a few most common use cases.