title: How to scroll to a specific component in React JS
body: <p>I've built a website using React (without any HTML) and I've split every page into smaller components. Let's say that I have for example the main page, and in the first component (the main section which is located at the top of the page) I have a button, and when I click on it I want it to take me to the last component of the page (which is located at the very bottom). I want something similar to the HTML &quot;on click scroll to ID element&quot;.</p>
  <p>How can I achieve that? Keep in mind that for every component I've created a separate js file.</p>
  <p>Thank you!</p>