title: React: Button onClick function is running on page load but not you click it
body: <p>I am using the ButtonGroup and Button from ReactStrap. I have set an onClick function when you click one of the buttons:</p>
  
  <pre><code>&lt; ButtonGroup &gt;
    &lt;Button&gt;Edit&lt;/Button&gt;
    &lt;Button onClick={console.log("Print some text")}&gt;Print text&lt;/Button&gt;
    &lt;Button&gt;Set as default&lt;/Button&gt;
  &lt;/ButtonGroup &gt;
  </code></pre>
  
  <p>But when I load the page this is what I get:
  <a href="https://i.stack.imgur.com/V7PkL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/V7PkL.png" alt="enter image description here"></a></p>
  
  <p>Before I have even clicked the button. And if I do click it, nothing comes out in the console. Any ideas?</p>