Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 8349ea4

Browse files
committed
fix code style for ES6 classes
1 parent a53c195 commit 8349ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code_style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ECMAScript
149149

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

155155
```jsx

0 commit comments

Comments
 (0)