title: How to add and remove active class in navigation in react js
body: <pre><code>&lt;ul&gt;
    &lt;li&gt;
      &lt;Link to={'/home'}&gt;
        Home
      &lt;/Link&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;Link to={'/story'}&gt;
        About us
      &lt;/Link&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I have above navigation tab in reactjs and I would like to toggle active class on click between links. I have been go through on various stacks but not able to find proper answer for above scenerio. </p>