Skip to content

Commit

Permalink
Updated code to be in sync with the video (kentcdodds#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
som-sm authored Jan 20, 2022
1 parent 5b281c1 commit ebc9652
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/__tests__/final/08.extra-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import useCounter from '../../components/use-counter'

function setup({initialProps} = {}) {
const result = {}
function TestComponent(props) {
result.current = useCounter(props)
function TestComponent() {
result.current = useCounter(initialProps)
return null
}
render(<TestComponent {...initialProps} />)
render(<TestComponent />)
return result
}

Expand Down

0 comments on commit ebc9652

Please sign in to comment.