Skip to content

Commit

Permalink
Update reference-caveats-solution.js (reactjs#3609)
Browse files Browse the repository at this point in the history
As referenced in https://reactjs.org/docs/context.html update the example to use the naming conventions used across the page.
  • Loading branch information
niklasp authored Apr 5, 2021
1 parent c9efa5e commit 49fd7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/context/reference-caveats-solution.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class App extends React.Component {
render() {
// highlight-range{2}
return (
<Provider value={this.state.value}>
<MyContext.Provider value={this.state.value}>
<Toolbar />
</Provider>
</MyContext.Provider>
);
}
}

0 comments on commit 49fd7d5

Please sign in to comment.