Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Feb 7, 2018
1 parent 1995cec commit b8213fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// After
class ExampleComponent extends React.Component {
// highlight-range{1-4}
// highlight-range{1-5}
state = {
currentColor: this.props.defaultColor,
palette: 'rgb'
currentColor: this.props
.defaultColor,
palette: 'rgb',
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
class ExampleComponent extends React.Component {
state = {};

// highlight-range{1-6}
// highlight-range{1-7}
componentWillMount() {
this.setState({
currentColor: this.props.defaultColor,
palette: 'rgb'
currentColor: this.props
.defaultColor,
palette: 'rgb',
});
}
}
}

0 comments on commit b8213fb

Please sign in to comment.