Emphasis on single child.

(cherry picked from commit 858377946f)
This commit is contained in:
Cheng Lou
2013-07-06 16:10:34 -04:00
committed by Paul O’Shannessy
parent d098ad7222
commit 5cdc55664d
+1 -1
View File
@@ -50,7 +50,7 @@ React.createClass({
function createClass(object specification)
```
Creates a component given a specification. A component implements a `render` method which returns a single child. That child may have an arbitrarily deep child structure. One thing that makes components different than a standard prototypal classes is that you don't need to call new on them. They are convenience wrappers that construct backing instances (via new) for you.
Creates a component given a specification. A component implements a `render` method which returns **one single** child. That child may have an arbitrarily deep child structure. One thing that makes components different than a standard prototypal classes is that you don't need to call new on them. They are convenience wrappers that construct backing instances (via new) for you.
#### React.renderComponent