title: React Link Button doesn't scroll to the top
body: <p>Got a simple problem that I have spent way too much time on. I've got a button, which when clicked opens another component. Since that component appears at the top of the page, I also want that the button would scroll the page to the top. The scrolling thing isn't working. No animations are needed, just that the page would go straight to the top, once the button is clicked.</p>
  
  <pre><code>&lt;li&gt;&lt;Link to={{ pathname: "/create"}} &gt;&lt;button className="create-button" onClick={() =&gt; window.scrollTo(0, 0)}&gt;Create&lt;/button&gt;&lt;/Link&gt;&lt;/li&gt;
  </code></pre>