You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: react/README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@
25
25
- Always use JSX syntax.
26
26
- Do not use `React.createElement` unless you're initializing the app from a file that is not JSX.
27
27
28
-
## Class vs `React.createClass`
28
+
## Class vs `React.createClass` vs stateless
29
29
30
30
- If you have internal state and/or refs, prefer `class extends React.Component` over `React.createClass` unless you have a very good reason to use mixins.
0 commit comments