React Memoization, Memoization, Reactjs, React, 100daysofcode.
memoizes expensive computed properties. import React, { useMemo } from 'react'; function ExpensiveCalculation({ values }) { const result = useMemo(() => { // Expensive computation based on 'values' let sum = 0; for (const value of values) { sum += value; } return sum; }, [values]); return ( <div>