Browse Source

Prettier

main
Alex Krolick 7 years ago
parent
commit
b0e860404b
  1. 2
      examples/context/reference-caveats-problem.js
  2. 8
      examples/context/reference-caveats-solution.js
  3. 2
      examples/context/theme-detailed-app.js

2
examples/context/reference-caveats-problem.js

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

8
examples/context/reference-caveats-solution.js

@ -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>
)
);
}
}

2
examples/context/theme-detailed-app.js

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

Loading…
Cancel
Save