title: Window.scrollTo is undefined in React
body: <p>I want to do a simple window.scrollTo(0,0) on a button click. I want it to just move the window to the top. Unfortunately the <code>window.scrollTo(0,0)</code> does nothing with the GUI.</p>
  <p>I suspect it has something to do with React and the structure of the application.</p>
  <pre><code>scrollToTop: function() {
      window.scrollTo(0, 0);
  }
  </code></pre>
  <p><img src="https://i.stack.imgur.com/CuGE1.png" alt="window undefined" /></p>
  <p>Do I have to do it in another way with react or is there something I have missed?</p>