diff --git a/beta/src/content/learn/synchronizing-with-effects.md b/beta/src/content/learn/synchronizing-with-effects.md index 11ca244a..8a11aed9 100644 --- a/beta/src/content/learn/synchronizing-with-effects.md +++ b/beta/src/content/learn/synchronizing-with-effects.md @@ -630,7 +630,7 @@ If your Effect subscribes to something, the cleanup function should unsubscribe: ```js {6} useEffect(() => { function handleScroll(e) { - console.log(e.clientX, e.clientY); + console.log(window.scrollX, window.scrollY); } window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll);