From 0ce79961c2ab1b9fe55664d3d21030530254056e Mon Sep 17 00:00:00 2001 From: Basarat Ali Syed Date: Sat, 6 Jun 2015 10:23:41 +1000 Subject: [PATCH 1/2] :memo: document changes for classes Taking https://github.com/facebook/react/pull/4013#discussion_r31829922 into account --- docs/ref-03-component-specs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/ref-03-component-specs.md b/docs/ref-03-component-specs.md index 9db7bf88..84ade014 100644 --- a/docs/ref-03-component-specs.md +++ b/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/blog/2015/01/27/react-v0.13.0-beta-1.html#es6-classes). ### render From 01eb5643a28fb5f3d94eadfd4d7e01d359791943 Mon Sep 17 00:00:00 2001 From: Basarat Ali Syed Date: Tue, 9 Jun 2015 11:33:33 +1000 Subject: [PATCH 2/2] :memo: link to docs and not the blog post --- docs/ref-03-component-specs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref-03-component-specs.md b/docs/ref-03-component-specs.md index 84ade014..2ad0bbbc 100644 --- a/docs/ref-03-component-specs.md +++ b/docs/ref-03-component-specs.md @@ -12,7 +12,7 @@ When creating a component class by invoking `React.createClass()`, you should pr > 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/blog/2015/01/27/react-v0.13.0-beta-1.html#es6-classes). +> 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