@samitouri / QOS-React-2 / commits / c7a2d46ead

component.render method returns a ReactElement.

Toru Kobayashi committed Apr 5, 2015 at 15:33 UTC c7a2d46ead1a4296dcccd2790ac889f5741eb3df
1 file changed +2 -2
docs/docs/ref-03-component-specs.md
+2 -2
@@ -14,12 +14,12 @@ When creating a component class by invoking `React.createClass()`, you should pr
14 ### render
15
16 ```javascript
17 -ReactComponent render()
17 +ReactElement render()
18 ```
19
20 The `render()` method is required.
21
22 -When called, it should examine `this.props` and `this.state` and return a single child component. This child component can be either a virtual representation of a native DOM component (such as `<div />` or `React.DOM.div()`) or another composite component that you've defined yourself.
22 +When called, it should examine `this.props` and `this.state` and return a single child element. This child element can be either a virtual representation of a native DOM component (such as `<div />` or `React.DOM.div()`) or another composite component that you've defined yourself.
23
24 You can also return `null` or `false` to indicate that you don't want anything rendered. Behind the scenes, React renders a `<noscript>` tag to work with our current diffing algorithm. When returning `null` or `false`, `React.findDOMNode(this)` will return `null`.
25