diff --git a/exercises/01.use-state/01.problem.initial-state/index.tsx b/exercises/01.use-state/01.problem.initial-state/index.tsx index eca15fc..c9ad77c 100644 --- a/exercises/01.use-state/01.problem.initial-state/index.tsx +++ b/exercises/01.use-state/01.problem.initial-state/index.tsx @@ -1,13 +1,14 @@ import { createRoot } from 'react-dom/client' // 🐨 create a `useState` function which accepts the initial state and returns -// an array of the state and a function to update it. +// an array of the state and a no-op function: () => {} // 🦺 note you may need to ignore some typescript errors here. We'll fix them later. // Feel free to make the `useState` a generic though! function Counter() { // @ts-expect-error 💣 delete this comment const [count, setCount] = useState(0) + // 🦺 you'll get an error for this we'll fix that next const increment = () => setCount(count + 1) return (