title: Using Dynamic Var with `Set` State in React Hooks?
body: <p>This is a pretty common pattern in React components:</p>
  
  <pre><code>handleTextFieldChange(event)
  {
      const name = event.currentTarget.name;
      this.setState({[name]: event.currentTarget.value})
  }
  </code></pre>
  
  <p>What Javascript syntax could be used to do the same with React hooks?</p>
  
  <p>i.e. something possibly along the lines of:</p>
  
  <pre><code>handleTextFieldChange(event)
  {
      const name = event.currentTarget.name;
      this.set[name](event.currentTarget.value);
  }
  </code></pre>