mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Prettier
This commit is contained in:
@@ -5,6 +5,6 @@ class App extends React.Component {
|
||||
<Provider value={{something: 'something'}}>
|
||||
<Toolbar />
|
||||
</Provider>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ class App extends React.Component {
|
||||
this.state = {
|
||||
theme: themes.light,
|
||||
};
|
||||
|
||||
|
||||
this.toggleTheme = () => {
|
||||
this.setState(state => ({
|
||||
theme:
|
||||
|
||||
Reference in New Issue
Block a user