Skip to content
public-library›Rules›React›Memoize deliberately

Memoize deliberately

Use useMemo, useCallback, and memo where measurement shows expensive work or wasted re-renders, and structure the code so that memoization actually takes effect.

In the full rule