React

useMemo

Definition

A React hook that memoizes the result of an expensive computation, recomputing only when its dependencies change. Use it to optimize performance by avoiding unnecessary recalculations on every render.

Code Example

Jsx

Learn More

Related Terms