Skip to content

Commit 86dd0a2

Browse files
authored
Update part6d.md - unnecessary prop passing in example
The value of counter for the Display component is grabbed via context, and does not need to be passed as a prop in this example.
1 parent 8301b27 commit 86dd0a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/6/en/part6d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ const App = () => {
568568

569569
return (
570570
<CounterContext.Provider value={[counter, counterDispatch]}> // highlight-line
571-
<Display counter={counter}/>
571+
<Display />
572572
<div>
573573
<Button type='INC' label='+' />
574574
<Button type='DEC' label='-' />

0 commit comments

Comments
 (0)