title: How to setState by value in React?
body: <p>Is there a simpler way to update state if I have the name of the attribute? Something simpler than this:</p>
  
  <pre><code>function thingChanged(name, value) { 
    var x = {};
    x[name] = value;
    this.setState(x)
  }
  </code></pre>