Skip to content
Prev Previous commit
Next Next commit
Update example-react-hooks-useContext.md
  • Loading branch information
iqbal125 authored Jul 24, 2019
commit 78cfdb45abb3c91ed82180385912cf8d9f36fca0
6 changes: 3 additions & 3 deletions docs/example-react-hooks-useContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const ChildComponent = () => {

return (
<div>
<button onClick={context.changeTextProp}>
Change Text
</button>
<button onClick={context.changeTextProp}>
Change Text
</button>
<p>{context.stateProp}</p>
</div>
)
Expand Down