--- id: component-specs title: Component Specs and Lifecycle permalink: component-specs.html prev: component-api.html next: tags-and-attributes.html --- ## Component Specifications When creating a component class by invoking `React.createClass()`, you should provide a specification object that contains a `render` method and can optionally contain other lifecycle methods described here. ### render ```javascript ReactComponent 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. You can also return `null` or `false` to indicate that you don't want anything rendered. Behind the scenes, React renders a `