Browse Source

Update reference-caveats-solution.js (#3609)

As referenced in https://reactjs.org/docs/context.html update the example to use the naming conventions used across the page.
main
Niklas P 4 years ago
committed by GitHub
parent
commit
49fd7d5f11
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/context/reference-caveats-solution.js

4
examples/context/reference-caveats-solution.js

@ -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>
);
}
}

Loading…
Cancel
Save