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
You may see some talk about ES6 classes being the preferred way to create React components. This is untrue. Most people (including Facebook) are using React.createClass().
No where in the official docs did I see React.createClass being preferred over ES6 classes. Did you mean createReactClass, which auto-binds methods but requires you to load another module? I'm curious what the reasoning was for this comment.
The text was updated successfully, but these errors were encountered:
No where in the official docs did I see
React.createClass
being preferred over ES6 classes. Did you meancreateReactClass
, which auto-binds methods but requires you to load another module? I'm curious what the reasoning was for this comment.The text was updated successfully, but these errors were encountered: