mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 22:25:36 +00:00
fix code style for ES6 classes
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ ECMAScript
|
|||||||
|
|
||||||
React
|
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:
|
- Pull out functions in props to the class, generally as specific event handlers:
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
|
|||||||
Reference in New Issue
Block a user