title: Pass props to react routes
body: <p>I have a snackbar handler in Main that I want to pass down to each Route component as a prop. How can I achieve this ?</p>
  
  <pre><code>&lt;Router history={browserHistory}&gt;
    &lt;Main history={browserHistory}&gt;
      &lt;Switch&gt;
        &lt;Route path="/comp1" component={comp1} /&gt;
        &lt;Route path="/comp2" component={comp2} /&gt;
        &lt;Route path="/comp3" component={comp3} /&gt;
        &lt;Route path="/comp4" component={comp4} /&gt;
      &lt;/Switch&gt;
    &lt;/Main&gt;
  &lt;/Router&gt;
  </code></pre>