Browse Source

Update reference-caveats-problem.js (#1626)

Added MyContext for clarity.
main
Ruslan Petrov 5 years ago
committed by GitHub
parent
commit
16647b39e6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/context/reference-caveats-problem.js

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

@ -2,9 +2,9 @@ class App extends React.Component {
render() {
// highlight-range{2}
return (
<Provider value={{something: 'something'}}>
<MyContext.Provider value={{something: 'something'}}>
<Toolbar />
</Provider>
</MyContext.Provider>
);
}
}

Loading…
Cancel
Save