fix code style for ES6 classes

pull/21833/head
Matthew Hodgson 2016-11-01 10:58:56 +00:00
parent a53c1958eb
commit 8349ea4b0e
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ ECMAScript
React
-----
- Use ES6 classes, although bear in mind a lot of code uses createClass.
- Use React.createClass rather than ES6 classes for components, as the boilerplate is way too heavy on ES6 currently. ES7 might improve it.
- Pull out functions in props to the class, generally as specific event handlers:
```jsx