React

Build modern UIs with React

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

Callback Refs vs Object Refs in React

Object refs hold a node in a current property, while callback refs run a function whenever a node attaches or detaches. Learn which fits your case.

React
Aug 15, 2026· 6 min read

How to Type useRef in React with TypeScript

Type the useRef Hook correctly in TypeScript: useRef now requires an argument and returns one mutable RefObject type for both DOM nodes and plain values.

React
Aug 15, 2026· 6 min read

Context vs Props: When to Use Each

Props flow explicitly from parent to child, while context shares a value with any reader below a provider. Learn which to reach for and when.

React