Skip to content

Commit 0c5a769

Browse files
committed
improve starting point
1 parent 3074fb5 commit 0c5a769

File tree

1 file changed

+3
-1
lines changed
  • exercises/03.use-effect/01.problem.callback

1 file changed

+3
-1
lines changed

exercises/03.use-effect/01.problem.callback/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// 💣 delete this so we can implement our own
2+
import { useEffect } from 'react'
3+
14
// 💰 you'll need this
25
// import { flushSync } from 'react-dom'
36
import { createRoot } from 'react-dom/client'
@@ -35,7 +38,6 @@ function Counter() {
3538
const [enabled, setEnabled] = useState(true)
3639
const toggle = () => setEnabled(!enabled)
3740

38-
// @ts-expect-error 💣 delete this comment
3941
useEffect(() => {
4042
console.log('consider yourself effective!')
4143
})

0 commit comments

Comments
 (0)