React

Build modern UIs with React

250 tutorials
12 of 250 tutorials
Aug 15, 2026· 6 min read

How to Synchronize React with Browser APIs

Browser APIs such as events, observers, and timers live outside React. Use useEffect to connect to them and a cleanup function to disconnect.

React
Aug 15, 2026· 5 min read

How to Focus an Input with useRef

Use useRef to point at an input element and call focus() on it, so a button or an Effect can move keyboard focus to the field.

React
Aug 15, 2026· 6 min read

How to Store Previous Values with useRef

Track the previous value of a prop or state variable with a useRef plus Effect pattern, and learn when the official render-time alternative is better.

React
Aug 15, 2026· 6 min read

How to Pass Refs Between React Components

Pass a ref from a parent to a child by treating ref as a regular prop in React 19, and forward it down to the DOM node you want to expose.

React