title: react scroll to component
body: <p>I have 3 components which is my site. Each component js-file is loaded and all 3 shows on one page like this:</p>
  
  <p>Topmenu
  SectionOne
  SectionTwo</p>
  
  <p>In the Topmenu component I have a menu only. I’ve tried to setup the scrollToComponent onClick at a menu field (SectionOne). But I cannot figure out how to get it to scroll to SectionOne when clicked?</p>
  
  <p>I know this.sectionOne is a ref to an internal ref, right? But how to direct it to a ref inside the “sectionOne.js” file?</p>
  
  <p>I have the following inside my TopMenu.js file</p>
  
  <pre><code>     onClick={() =&gt; scrollToComponent(this.sectionOne , { offset: 0, align: 'top', duration: 1500})}
  </code></pre>