Skip to content

Commit b8213fb

Browse files
committed
Prettier
1 parent 1995cec commit b8213fb

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// After
22
class ExampleComponent extends React.Component {
3-
// highlight-range{1-4}
3+
// highlight-range{1-5}
44
state = {
5-
currentColor: this.props.defaultColor,
6-
palette: 'rgb'
5+
currentColor: this.props
6+
.defaultColor,
7+
palette: 'rgb',
78
};
89
}

examples/update-on-async-rendering/initializing-state-before.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
class ExampleComponent extends React.Component {
33
state = {};
44

5-
// highlight-range{1-6}
5+
// highlight-range{1-7}
66
componentWillMount() {
77
this.setState({
8-
currentColor: this.props.defaultColor,
9-
palette: 'rgb'
8+
currentColor: this.props
9+
.defaultColor,
10+
palette: 'rgb',
1011
});
1112
}
12-
}
13+
}

0 commit comments

Comments
 (0)