title: How to setState with a variable as the key?
body: <p>How to setState with a variable like the following: </p>
  
  <pre><code>this.handler = (field) =&gt; {
  
  this.setState({field:'value'})
  
  }
  </code></pre>
  
  <p>Please help I am having trouble doing it. </p>