Browse Source
Update reference-caveats-problem.js (#1626)
Added MyContext for clarity.
main
Ruslan Petrov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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> |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|