Skip to content

Commit 3074fb5

Browse files
committed
improve starting point
1 parent 11c396a commit 3074fb5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

epicshop/.diffignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tsconfig.json

exercises/01.use-state/01.problem.initial-state/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// 💣 delete this
2+
import { useState } from 'react'
3+
14
import { createRoot } from 'react-dom/client'
25

36
// 🐨 create a `useState` function which accepts the initial state and returns
@@ -6,7 +9,6 @@ import { createRoot } from 'react-dom/client'
69
// Feel free to make the `useState` a generic though!
710

811
function Counter() {
9-
// @ts-expect-error 💣 delete this comment
1012
const [count, setCount] = useState(0)
1113
// 🦺 you'll get an error for this we'll fix that next
1214
const increment = () => setCount(count + 1)

0 commit comments

Comments
 (0)