React

Build modern UIs with React

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

How to Type React Events and Form Handlers

Type React events and form handlers with the event types from @types/react. Most handlers infer the type, and you annotate only when extracting functions.

React
Aug 15, 2026· 6 min read

How the useEffect Dependency Array Works

The dependency array is the second argument to useEffect. It tells React when to skip re-running the Effect by comparing each value with Object.is.

React
Aug 15, 2026· 6 min read

How to Use Async Functions Inside useEffect

useEffect does not accept an async function directly. Declare an async function inside the Effect, call it, and guard against stale responses in the cleanup.

React