title: React js access to the state of another class
body: <p>How can I access the state of another class. <br />
  This construction does not work</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>class classname2 extends React.Component {
    ...
    this.state = { statename1: "lala" };
    ...
  };
  
  class classname1 extends React.Component {
    render() {
      return (
         {classname2.state.statename1 } 
      );
    }
  };</code></pre>
  </div>
  </div>
  </p>