title: Linking by ID in react in same page
body: <p>I am trying to make a 1 page website in react and I have divided it into multiple components. So, I have a navbar component and an education component. Now I want to link navbar to education.
  In App.js I am doing this</p>
  
  <pre><code>        &lt;Education id="edu"&gt;&lt;/Education&gt;
  </code></pre>
  
  <p>and in navbar I am linking like this</p>
  
  <p><code>&lt;NavLink href="#edu" className="navlink"&gt;
                Education
              &lt;/NavLink&gt;</code></p>
  
  <p>But it is not working.</p>