title: React ES6: you may have forgotten to define `render`
body: <p>I stuck for a while ,and do not know where is wrong ,Please help me  </p>
  
  <p>Here is the error message:</p>
  
  <pre><code>Warning: App(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.
  Uncaught TypeError: inst.render is not a function
  </code></pre>
  
  <p>here is my code : </p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  
  console.log('Start')
  
  export class App extends React.Component{
    constructor(props) {
       super(props);
       console.log('getInitialState');
       return { status:true }
    }
    toggleState(){
      this.setState({status: !this.state.status})
    }
    render() {
      console.log('render');
          return (
             &lt;div&gt;
                &lt;h1 onClick={this.toggleState}&gt;Hello&lt;/h1&gt;
             &lt;/div&gt;
          );
       }
  
  } 
  
  ReactDOM.render(&lt;App name='Vipul' /&gt;,document.getElementById('app'));
  </code></pre>