mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
Merge pull request #4046 from basarat/patch-2
📝 document changes for classes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user