Skip to content

Commit 49fd7d5

Browse files
authored
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.
1 parent c9efa5e commit 49fd7d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/context/reference-caveats-solution.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class App extends React.Component {
1010
render() {
1111
// highlight-range{2}
1212
return (
13-
<Provider value={this.state.value}>
13+
<MyContext.Provider value={this.state.value}>
1414
<Toolbar />
15-
</Provider>
15+
</MyContext.Provider>
1616
);
1717
}
1818
}

0 commit comments

Comments
 (0)