title: How to center a button in React
body: <p>I have tried the following, but it does not work</p>
  
  <pre><code>&lt;button style = {{display: 'flex', flexDirection: 'column', alignItems: 'center'}} onClick = {this.scream} &gt;Submit&lt;/button&gt;
  </code></pre>