// Before the compiler // You might rely on useMemo for optimizing expensive calculations const memoizedValue = useMemo(() => computeExpensiveValue(a, b), [a, b]); // After the compiler // Directly compute values without worrying about unnecessary re-renders const result = computeExpensiveValue(a, b);