We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c396a commit 3074fb5Copy full SHA for 3074fb5
epicshop/.diffignore
@@ -0,0 +1 @@
1
+tsconfig.json
exercises/01.use-state/01.problem.initial-state/index.tsx
@@ -1,3 +1,6 @@
+// 💣 delete this
2
+import { useState } from 'react'
3
+
4
import { createRoot } from 'react-dom/client'
5
6
// 🐨 create a `useState` function which accepts the initial state and returns
@@ -6,7 +9,6 @@ import { createRoot } from 'react-dom/client'
9
// Feel free to make the `useState` a generic though!
7
10
8
11
function Counter() {
- // @ts-expect-error 💣 delete this comment
12
const [count, setCount] = useState(0)
13
// 🦺 you'll get an error for this we'll fix that next
14
const increment = () => setCount(count + 1)
0 commit comments