commit 297dc248cc80938cd9f8bcb4b44a6fcb8f1568ab
parent 2eb54d9d1237708318eaae20d8035d2ff609433e
Author: Konstantin Tarkus <koistya@gmail.com>
Date: Fri, 30 Oct 2015 18:11:18 +0300
Merge pull request #300 from bsitruk/patch-2
Update react-style-guide.md
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() {