Browse Source

Merge pull request #4046 from basarat/patch-2

📝 document changes for classes
main
Paul O’Shannessy 10 years ago
parent
commit
fbe37121d4
  1. 3
      docs/ref-03-component-specs.md

3
docs/ref-03-component-specs.md

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

Loading…
Cancel
Save