I have 2 different components which are appearing on the same URL(page) and what I want to achieve is, when the button is clicked on Component A it would take me to the Component B location which is on the same page. So with basic HTML this is what I want to achieve;
<a href="#linkToDiv">Scroll me down</a>
<div id="linkToDiv">
Scrolled
</div>
How can I achieve this with React/Next.js