Files
react.dev/examples/context/reference-caveats-solution.js
Alex Krolick b0e860404b Prettier
2018-03-23 13:54:55 -07:00

18 lines
300 B
JavaScript

class App extends React.Component {
constructor(props) {
// highlight-range{2}
this.state = {
value: {something: 'something'},
};
}
render() {
// highlight-range{2}
return (
<Provider value={this.state.value}>
<Toolbar />
</Provider>
);
}
}