title: How to get current route from outside in react-router?
body: <p>Is it possible to get the current route from an outside component?</p>
  
  <p>Basically, I have a Page title component that would only display the current page title. Can't seem to figure out how to access the routes from an outside component?</p>
  
  <p>Edit: 
  <strong>App.jsx</strong></p>
  
  <p><code>&lt;div style={styles.container}&gt;
                  &lt;Sidebar style={styles.sidebar} links={sidebarLinks}/&gt;
                  &lt;div style={styles.wrapper}&gt;
                      &lt;Header style={styles.header}/&gt;
                      &lt;div style={styles.content}&gt;
                    &lt;PageTitle style={styles.pageTitle} /&gt; //Want current route here
                          {this.props.children}
                      &lt;/div&gt;
                      &lt;Footer style={styles.footer}/&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  </code>
  <strong>Routes</strong></p>
  
  <pre><code>    const routes =  (
  &lt;Route path="/" component={App}&gt;
      &lt;IndexRoute component={Dashboard}&gt;&lt;/IndexRoute&gt;
      &lt;Route path="containers" component={Containers} /&gt;
      &lt;Route path="discover" component={Discover} /&gt;
      &lt;Route path="groups" component={Groups} /&gt;
      &lt;Route path="profiles" component={Profiles} /&gt;
  &lt;/Route&gt;
  );
  </code></pre>