From feb230d21734f0575d81a9a3f97d2a34d60b9f13 Mon Sep 17 00:00:00 2001 From: Remoun Metyas Date: Tue, 29 Oct 2024 14:28:17 -0700 Subject: [PATCH] fix: tiny typo (#134) --- exercises/02.latest-ref/01.problem.ref/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/02.latest-ref/01.problem.ref/index.tsx b/exercises/02.latest-ref/01.problem.ref/index.tsx index 9efb8112..804b3084 100644 --- a/exercises/02.latest-ref/01.problem.ref/index.tsx +++ b/exercises/02.latest-ref/01.problem.ref/index.tsx @@ -21,7 +21,7 @@ function useDebounce) => unknown>( // 🐨 create a latest ref (via useRef and useEffect) here // use the latest version of the callback here: - // 💰 you'll need to pass an annonymous function to debounce. Do *not* + // 💰 you'll need to pass an anonymous function to debounce. Do *not* // simply change this to `debounce(latestCallbackRef.current, delay)` // as that won't work. Can you think of why? return useMemo(() => debounce(callback, delay), [callback, delay])