You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
338 B

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