Merge pull request #4046 from basarat/patch-2

📝 document changes for classes
This commit is contained in:
Paul O’Shannessy
2015-06-08 21:46:39 -07:00

View File

@@ -10,6 +10,9 @@ next: tags-and-attributes.html
When creating a component class by invoking `React.createClass()`, you should provide a specification object that contains a `render` method and can optionally contain other lifecycle methods described here.
> Note:
>
> It is also possible to use plain JavaScript classes as component classes. These classes can implement most of the same methods, though there are some differences. For more information about these differences, please read our documentation about [ES6 classes](/react/docs/reusable-components.html#es6-classes).
### render