title: React global state via props
body: <p>Im using a shared global state as the following:</p>
  
  <pre><code>interface DashboardProps extends React.Props&lt;Dashboard&gt; {
      globalState? : GlobalState
  }
  
  export class Dashboard extends React.Component&lt;DashboardProps, any&gt;{
  
  }
  </code></pre>
  
  <p>In <code>AppLayout</code> i call it:</p>
  
  <pre><code>&lt;Route  path='/dashboard'&gt;
     &lt;Dashboard globalState={this.state} /&gt;
  &lt;/Route&gt;
  </code></pre>
  
  <p>let say that inside <code>Dashboard</code> class I need to change the <code>globalState</code>, whats the best way to do so?</p>
  
  <p>Thanks</p>