← React Beginner Questions - Set 10 Q93

What is the purpose of the useMemo hook in React?

React Beginner Questions - Set 10

Example

const sorted = useMemo(() => [...rows].sort(byDate), [rows]);

What to notice

← Back to the question list