From c7a2d46ead1a4296dcccd2790ac889f5741eb3df Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Sun, 5 Apr 2015 15:33:19 +0900 Subject: [PATCH] component.render method returns a ReactElement. --- docs/docs/ref-03-component-specs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/ref-03-component-specs.md b/docs/docs/ref-03-component-specs.md index 493bfb851a..9db7bf8833 100644 --- a/docs/docs/ref-03-component-specs.md +++ b/docs/docs/ref-03-component-specs.md @@ -14,12 +14,12 @@ When creating a component class by invoking `React.createClass()`, you should pr ### render ```javascript -ReactComponent render() +ReactElement render() ``` The `render()` method is required. -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 `
` or `React.DOM.div()`) or another composite component that you've defined yourself. +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 `
` or `React.DOM.div()`) or another composite component that you've defined yourself. You can also return `null` or `false` to indicate that you don't want anything rendered. Behind the scenes, React renders a `