From b994d076d15711652e2b78687766dbe5359d30d4 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/docs/ref-03-component-specs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/docs/ref-03-component-specs.md b/docs/docs/ref-03-component-specs.md index 9db7bf8833..84ade0143f 100644 --- a/docs/docs/ref-03-component-specs.md +++ b/docs/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 b7fe1ac0fc9c28ea4eb0b2c0727b20a3ea93ae14 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/docs/ref-03-component-specs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/ref-03-component-specs.md b/docs/docs/ref-03-component-specs.md index 84ade0143f..2ad0bbbc8e 100644 --- a/docs/docs/ref-03-component-specs.md +++ b/docs/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