← React Intermediate Questions - Set 8 Q71

How can you prevent unnecessary re-renders in React?

React Intermediate Questions - Set 8

Example

const Row = memo(RowBase);
const onPick = useCallback(id => select(id), []);
const rows = useMemo(() => sort(data), [data]);

What to notice

← Back to the question list