title: Not able to access array element in react
body: <p>I am receiving a json data of single student from the server. Here i can easily get this.state.info.Firstname but i can not able to access this.state.info.Father.Firstname. How can i access this??</p>
  
  <p>this is my react code:</p>
  
  <pre><code>import React from 'react';
  import axios from 'axios';
  
  class Information extends React.Component{
      constructor(props){
          super(props);
          this.state={
              info:' '
          }
      }
  
      componentDidMount(){
          let self = this;
          axios.get('http://localhost:8080/studentById')
              .then(function(data) {
                  //console.log(data);
                  self.setState({info:data.data});
              });
      }
  
      render(){
          return(
              &lt;div&gt;
                  &lt;pre&gt;
                    &lt;ul&gt;
                      &lt;li&gt;{this.state.info.Firstname}&lt;/li&gt;
                      &lt;li&gt;{this.state.info.Lastname}&lt;/li&gt;
                      &lt;li&gt;{this.state.info.DateOfBirth}&lt;/li&gt;
                      &lt;li&gt;{this.state.info.PlaceOfBirth}&lt;/li&gt;
                      &lt;li&gt;{this.state.info.Age}&lt;/li&gt;
                      &lt;li&gt;{this.state.info.Months}&lt;/li&gt;
                      &lt;li&gt;{this.state.info.Nationality}&lt;/li&gt;
                      &lt;li&gt;{this.state.info.MotherTongue}&lt;/li&gt;
                      &lt;li&gt;{this.state.info.BloodGroup}&lt;/li&gt;
                      &lt;li&gt;{this.state.info.Father.Firstname}&lt;/li&gt;                
                    &lt;/ul&gt;
                  &lt;/pre&gt;
              &lt;/div&gt;);
      }
  }
  export default Information;
  </code></pre>
  
  <p>this is my json data:</p>
  
  <pre><code>{ _id: 5899b77c0ce1d10b723ab4ac,
    Id: 92,
    Firstname: 'Surya',
    Age: 11,
    Lastname: 'G',
    DateOfBirth: '11-11-11',
    PlaceOfBirth: 'Bangalore',
    Months: 2,
    Nationality: 'Indian',
    MotherTongue: 'Kannada',
    BloodGroup: 'B+ve',
    ResidentialAddress: 'Vijayanagar 3rd cross, Bangalore',
    EmergencyContactNumber: 
     { Address: 'SIT',
       PhoneNo1: 1234,
       PhoneNo2: 123455,
       Relationship1: 'Uncle',
       Relationship2: 'Aunty' },
    Mother: 
     { Firstname: 'Joe',
       Lastname: 'S',
       Occupation: 'Business',
       PlaceOfWork: 'Bangalore',
       OfficialAddress: 'Jayanagar',
       EmailId: 'jjj@gmail.com',
       PhoneNo: 12345,
       MobileNo: 1234567890 },
    Father: 
     { Firstname: 'Chandra',
       Lastname: 'S',
       Occupation: 'Business',
       PlaceOfWork: 'Bangalore',
       OfficialAddress: 'BTM',
       EmailId: 'cc@gmail.com',
       PhoneNo: 12345,
       MobileNo: 1234567890 } }
  </code></pre>