Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5cdc556

Browse files
chenglouzpao
authored andcommitted
Emphasis on single child.
(cherry picked from commit 8583779)
1 parent d098ad7 commit 5cdc556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ React.createClass({
5050
function createClass(object specification)
5151
```
5252

53-
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.
53+
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.
5454

5555
#### React.renderComponent
5656

0 commit comments

Comments
 (0)