title: Check if page has on link to add class on it
body: <p>Function to check if, when I click on button on Navbar, go to the page and add a class 'Active' on it.</p>
  <pre><code> checkToActive(to) {
             return (to === this.props.location.pathname) ? 'Active' : '';
      }
  </code></pre>
  <p>My button</p>
  <pre><code> &lt;Button state={this.checkToActive(&quot;/listening&quot;)} text=&quot;Listening&quot; to=&quot;/listening&quot; /&gt;
  </code></pre>
  <p>So.. when I click and go to the page /listening the button get 'Active' class, but when I go to /listening/subPage the button don't have it.. what can I do to make this work?</p>
  <p>Thanks.</p>