diff --git a/exercises/02.side-effects/01.problem.effects/index.tsx b/exercises/02.side-effects/01.problem.effects/index.tsx index f6b2315e6..6aba1805b 100644 --- a/exercises/02.side-effects/01.problem.effects/index.tsx +++ b/exercises/02.side-effects/01.problem.effects/index.tsx @@ -19,6 +19,7 @@ function App() { // 🐨 add a useEffect(() => {}, []) call here (we'll talk about that empty array later) // 🐨 in the useEffect callback, subscribe to window's popstate event + // 🦉 if that doesn't make sense to you... don't worry, it's supposed to be broken! We'll fix it next // 🐨 your event handler should call setQuery to getQueryParam() // 📜 https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener