Skip to content

Commit

Permalink
improve starting point
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Jul 2, 2024
1 parent 3074fb5 commit 0c5a769
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exercises/03.use-effect/01.problem.callback/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// 💣 delete this so we can implement our own
import { useEffect } from 'react'

// 💰 you'll need this
// import { flushSync } from 'react-dom'
import { createRoot } from 'react-dom/client'
Expand Down Expand Up @@ -35,7 +38,6 @@ function Counter() {
const [enabled, setEnabled] = useState(true)
const toggle = () => setEnabled(!enabled)

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

0 comments on commit 0c5a769

Please sign in to comment.