title: React - Display State Object Value in a Simple <div>
body: <p>All I want to do is to display a value from my state object in a div but I am having trouble figuring out how.</p>
  <pre><code>class MarketIndices extends Component {
    constructor(props) {
      super(props);
      this.state = {
        data:
          average: 426.661
          close: 427.11
          date: &quot;2020-10-02,
      };
    }
  
  render() {
      return (
        &lt;div&gt;
             &quot;&quot;&quot;Inset how to display state object value here&quot;&quot;&quot;
        &lt;/div&gt;
      );
    }
  }
  
  
  </code></pre>
  <p>How do I display something like the value of average in a div? It seems like it should be simple but I cannot figure it out!</p>