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.
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.