React router - get route prop outside of bound component
<p>I defined some routes :</p>

<pre><code>render((
    &lt;Router history={hashHistory}&gt;
        &lt;Route path="/" component={App}&gt;
            &lt;IndexRoute component={IndexContainer} /&gt;
            &lt;Route path="/agence" headerWhite={true} component={AgencyContainer} /&gt;
        &lt;/Route&gt;
    &lt;/Router&gt;
), document.getElementById('app'));
</code></pre>

<p>As you can see, I have a prop <code>headerWhite={true}</code> on <code>/agence</code> route. I can access it in my <code>AgencyContainer</code> component via <code>this.props.route.headerWhite</code>. But what I want is to be able to access it in my <code>App</code> component. Is there a simple way to do it ?</p>

<p>What I want to achieve is to pass that <code>headerWhite</code> prop to my <code>Header</code> component which is rendered in my <code>App</code> component because it has to be on every page of the website.</p>

<p>Thank you very much.</p>