Nitpick: use FB style in doc
Dan Abramov committed
Jan 4, 2017 at 15:59 UTC
8403a3e6a4175bc07558524e7f7f1331f0dab785
1 file changed
+3
-3
docs/docs/react-without-es6.md
+3
-3
@@ -97,7 +97,7 @@ In React components declared as ES6 classes, methods follow the same semantics a
97
class SayHello extends React.Component {
98
constructor(props) {
99
super(props);
100
- this.state = { message: 'Hello!' };
100
+ this.state = {message: 'Hello!'};
101
// This line is important!
102
this.handleClick = this.handleClick.bind(this);
103
}
@@ -122,7 +122,7 @@ With `React.createClass()`, this is not necessary because it binds all methods:
122
```javascript
123
var SayHello = React.createClass({
124
getInitialState: function() {
125
- return { message: 'Hello!' };
125
+ return {message: 'Hello!'};
126
},
127
128
handleClick: function() {
@@ -148,7 +148,7 @@ If the boilerplate code is too unattractive to you, you may enable the **experim
148
class SayHello extends React.Component {
149
constructor(props) {
150
super(props);
151
- this.state = { message: 'Hello!' };
151
+ this.state = {message: 'Hello!'};
152
}
153
// WARNING: this syntax is experimental!
154
// Using an arrow here binds the method: