title: React: Dynamically created state variable
body: <p>I tried to run the code below, but I got an <code>undefined</code> from the <code>console.log</code> statement.  Any thoughts?</p>
  
  <pre><code>this.setState({ [show]: true })
  console.log("this.state.show: " , this.state.show);
  </code></pre>