commit aa2b553bece247f198cbedbdcda10ca6a19ad193
parent 2eb54d9d1237708318eaae20d8035d2ff609433e
Author: Benjamin Sitruk <sitruk.benjamin@gmail.com>
Date: Fri, 30 Oct 2015 16:05:03 +0100
Update react-style-guide.md
cf: http://babeljs.io/blog/2015/06/07/react-on-es6-plus/
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/react-style-guide.md b/docs/react-style-guide.md
@@ -105,9 +105,11 @@ class SampleComponent extends Component {
static defaultProps = { ... };
+ state = { ... };
+
constructor() {
super();
- this.state = { ... };
+ // componentWillMount handler
}
componentDidMount() {