title: Inserting state into a string
body: <p>This seems like a simple one but it's causing me issues. I want to take state and pass it into a string/property that I'm using with chartjs.</p>
  
  <p>This piece of code works fine. </p>
  
  <pre><code>render() {
          const data = {
              labels: ['one', 'two', 'three'],
              datasets: [
                  {
                      label: 'Label1',
                      fill: false,
                      pointHitRadius: 10,
                      data: this.props.historicalData[this.state.time].catB.myitem.data,
                  },
  </code></pre>
  
  <p>What I want to change is 'myitem' to be whatever is in my state (which is being changed on click of buttons).</p>
  
  <p>I've tried:</p>
  
  <pre><code>data: this.props.historicalData[this.state.time].catB.this.state.myItem.data,
  </code></pre>
  
  <p>and also</p>
  
  <pre><code>data: `this.props.historicalData[this.state.time].catB.{this.state.myItem}.data`,
  </code></pre>