From 49fd7d5f115378e3663b049f108a2d29b31290c8 Mon Sep 17 00:00:00 2001 From: Niklas P <niklasp@users.noreply.github.com> Date: Mon, 5 Apr 2021 11:31:03 +0200 Subject: [PATCH] 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. --- examples/context/reference-caveats-solution.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/context/reference-caveats-solution.js b/examples/context/reference-caveats-solution.js index deefabd4..a06f5da2 100644 --- a/examples/context/reference-caveats-solution.js +++ b/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> ); } }