From 09dff5b433cabd81dee710bc28eccf80fb30c7c8 Mon Sep 17 00:00:00 2001 From: Brian Tripp <46498972+bdtripp@users.noreply.github.com> Date: Fri, 2 Jan 2026 04:16:39 -0600 Subject: [PATCH] fix(curriculum): typo in what is memoization and how does the useMemo hook work (#64946) --- .../67d2f4ddb4a4306fdf5bbaee.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/blocks/lecture-working-with-data-fetching-and-memoization-in-react/67d2f4ddb4a4306fdf5bbaee.md b/curriculum/challenges/english/blocks/lecture-working-with-data-fetching-and-memoization-in-react/67d2f4ddb4a4306fdf5bbaee.md index 61a11871646..e100375fedf 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-data-fetching-and-memoization-in-react/67d2f4ddb4a4306fdf5bbaee.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-data-fetching-and-memoization-in-react/67d2f4ddb4a4306fdf5bbaee.md @@ -96,7 +96,7 @@ function App() { export default App; ``` -The `timer` in the `useEffect`, running every second, will make the `calculateSquare` function runs any time it runs, even when you don't increase the `num` state variable. +The `timer` in the `useEffect`, running every second, will make the `calculateSquare` function run any time it runs, even when you don't increase the `num` state variable. To solve this problem, we can use the `useMemo` hook by wrapping the function call in it and specifying the `num` variable as the dependency: