title: React get specific property values from an object using strings in an array as property names
body: <p>I am having an issue with getting the property values from an object using strings in an array as property names in React. Is there a way I can retrieve these values using the array?</p>
  
  <p>Here is some of my code:</p>
  
  <pre><code>render() {
      return (
        &lt;div className="dynamicTable"&gt;
          {
            this.state.people.map((item, i) =&gt; {
  
              return (
                &lt;div id={item.name} className="tableRowDiv"&gt;
                {
                  this.props.tableArray.map((attribute, j) =&gt; {
                    return (
                      &lt;div className="tableDataDiv"&gt;
                        {item.(this.props.tableArray[j])} //ISSUE
  </code></pre>
  
  <p><strong>ISSUE: This is the line that I believe 
      needs the help.  I would like to call the property from "item" based on the property name specified in the prop array</strong></p>
  
  <pre><code>                    &lt;/div&gt;
                    );
                  })
                }
                &lt;/div&gt;
              );
            })
          }
        &lt;/div&gt;
      );
    }
  }
  
  People.propsTypes = {
    tableArray: React.PropTypes.array,
  };
  </code></pre>
  
  <p>here is the array I am using as a prop of my component:</p>
  
  <p></p>
  
  <p>This is an example of what the objects look like:</p>
  
  <pre><code>[
    [
      'name': 'bobby',
      'height': '55',
      'hair': 'brown'
      'birthday': '01011970',
      'car': 'honda'
      'weight': '130',
      'favoriteFood': 'pizza'
    ],
    [
      'name': 'mary',
      'height': '60',
      'hair': 'brown'
      'birthday': '10141990',
      'car': 'ford'
      'weight': '160',
      'favoriteFood': 'pasta'
    ],
    [
      'name': 'jane',
      'height': '50',
      'hair': 'blonde'
      'birthday': '03241980',
      'car': 'jeep'
      'weight': '140',
      'favoriteFood': 'chicken'
    ],
  ]
  </code></pre>
  
  <p>Thank you in advance!</p>