We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3074fb5 commit 0c5a769Copy full SHA for 0c5a769
exercises/03.use-effect/01.problem.callback/index.tsx
@@ -1,3 +1,6 @@
1
+// 💣 delete this so we can implement our own
2
+import { useEffect } from 'react'
3
+
4
// 💰 you'll need this
5
// import { flushSync } from 'react-dom'
6
import { createRoot } from 'react-dom/client'
@@ -35,7 +38,6 @@ function Counter() {
35
38
const [enabled, setEnabled] = useState(true)
36
39
const toggle = () => setEnabled(!enabled)
37
40
- // @ts-expect-error 💣 delete this comment
41
useEffect(() => {
42
console.log('consider yourself effective!')
43
})
0 commit comments