DEV Community

Tom
Tom

Posted on

2 1

How to type useRef?

This is more for personal reference:

const ref = useRef<HTMLDivElement>(null);

...

<div ref={ref}>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post