diff --git a/docs/ref-02-component-api.md b/docs/ref-02-component-api.md index 962de2e0..c3c26238 100644 --- a/docs/ref-02-component-api.md +++ b/docs/ref-02-component-api.md @@ -18,7 +18,7 @@ Component classes created by `createClass()` return instances of `ReactComponent DOMElement getDOMNode() ``` -If this component has been mounted into the DOM, this returns the corresponding native browser DOM element. This method is useful for reading values out of the DOM, such as form field values and performing DOM measurements. +If this component has been mounted into the DOM, this returns the corresponding native browser DOM element. This method is useful for reading values out of the DOM, such as form field values and performing DOM measurements. When `render` returns `null` or `false`, `this.getDOMNode()` returns `null`. ### setProps diff --git a/docs/ref-03-component-specs.md b/docs/ref-03-component-specs.md index 53388092..05076058 100644 --- a/docs/ref-03-component-specs.md +++ b/docs/ref-03-component-specs.md @@ -22,6 +22,8 @@ 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. +You can also return `null` or `false` to indicate that you don't want anything rendered. Behind the scenes, React renders a `