From 06d5be4571782c46e6b5c45498a0d90b58706183 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 7 Feb 2018 08:10:28 -0800 Subject: [PATCH] Prettier --- .../initializing-state-after.js | 7 ++++--- .../initializing-state-before.js | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/examples/update-on-async-rendering/initializing-state-after.js b/examples/update-on-async-rendering/initializing-state-after.js index 72fe66ca..5ccb3a6c 100644 --- a/examples/update-on-async-rendering/initializing-state-after.js +++ b/examples/update-on-async-rendering/initializing-state-after.js @@ -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', }; } diff --git a/examples/update-on-async-rendering/initializing-state-before.js b/examples/update-on-async-rendering/initializing-state-before.js index 92e37349..9f5aa715 100644 --- a/examples/update-on-async-rendering/initializing-state-before.js +++ b/examples/update-on-async-rendering/initializing-state-before.js @@ -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', }); } -} \ No newline at end of file +}