Articles by Tag #useref

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

Don’t Misuse useRef in React: The Practical Guide You Actually Need

React 19 useRef — Deep Dive useRef looks tiny on the surface, but used well it prevents bugs, speeds...

Learn More 3 3Aug 17

React useRef vs useState — When to Use Which

React gives us useState and useRef to store values across renders. But they behave differently. ...

Learn More 2 0Sep 17

📍 useRef in React — Access DOM or Store Mutable Values Without Re-rendering

The useRef hook is used to: • Access and modify DOM elements directly • Store mutable values that...

Learn More 2 0Aug 7

Mastering React's useRef Hook: Working with DOM and Mutable Values

useRef Hook in React The useRef hook is a built-in React hook used to persist values...

Learn More 1 0Dec 18 '24

How to create components interfaces using useRef/forwardRef/useImperativeHandle

Let's build a case Imagine you have a counter—a classic, simple counter...

Learn More 2 0Jan 10

I Thought useRef Was Slow Until This Happened

While coding with React, I almost never touched this particular React Hook: useRef. Maybe it's more...

Learn More 1 0Apr 13

Beyond State: Exploring the Power of React Refs

Discover how to use React refs effectively to optimize performance, manage DOM interactions, and...

Learn More 0 0Feb 11

nice in-depth tutorial on useRef

Mastering React's useRef Hook: A Deep Dive Sam Abaasi ・...

Learn More 0 0Sep 10

React useRef Explained with Real-World Examples

I just published a complete guide on how to use React’s useRef hook, including DOM access, timers,...

Learn More 0 0Nov 23