title: setTimeout in React, not being able to clear
body: <p>I am trying to have my code fire 3 seconds after the button being clicked. I can't manage to do this though. Either it is firing immediately or it fires and doesn't stop.</p>
  <pre><code>&lt;Button onClick={setTimeout(() =&gt; window.location.reload(false), 4000), clearTimeout()}&gt;Spin&lt;/Button&gt;
  </code></pre>
  <p>It has been a long time since I've used <code>setTimeout</code> in any way, so it's probably a very simple fix.</p>
  <p>Apologies if there is a similar question to this, I couldn't find anything that was relating to this enough to help me out.</p>