We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723ee2a commit d964067Copy full SHA for d964067
src/content/6/en/part6d.md
@@ -552,7 +552,7 @@ const App = () => {
552
553
return (
554
<CounterContext.Provider value={[counter, counterDispatch]}> // highlight-line
555
- <Display counter={counter}/>
+ <Display />
556
<div>
557
<Button type='INC' label='+' />
558
<Button type='DEC' label='-' />
@@ -574,7 +574,7 @@ import { useContext } from 'react' // highlight-line
574
import CounterContext from './CounterContext'
575
576
const Display = () => {
577
- const [counter, dispatch] = useContext(CounterContext) // highlight-line
+ const [counter] = useContext(CounterContext) // highlight-line
578
return <div>
579
{counter}
580
</div>
0 commit comments