This commit is contained in:
Alex Krolick
2018-03-23 13:54:55 -07:00
parent 349446d8a7
commit b0e860404b
3 changed files with 6 additions and 6 deletions

View File

@@ -5,6 +5,6 @@ class App extends React.Component {
<Provider value={{something: 'something'}}>
<Toolbar />
</Provider>
)
);
}
}

View File

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

View File

@@ -15,7 +15,7 @@ class App extends React.Component {
this.state = {
theme: themes.light,
};
this.toggleTheme = () => {
this.setState(state => ({
theme: