title: Reactjs access Object property from JSON in Child companent using props
body: <p>Might be duplicate of <a href="https://stackoverflow.com/questions/31132170/reactjs-cannot-access-props">ReactJs cannot access props</a> but this didn't help me still getting undefined.</p>
  <p>But i am stuck with syntax how to <strong>fetch</strong> a <strong>object property</strong> eg : object &quot;releasedata&quot;s &quot;<strong>name</strong>&quot; property in the below JSON response using props in React in my child component.</p>
  <p>Please Note : Not an array which i found lots of answer in stack.</p>
  <p>JSON :</p>
  <pre><code>{
      id: &quot;-559674239450219239&quot;,
      key: &quot;TASK-1&quot;,
      name: &quot;Hide old Releases&quot;,
      projectId: &quot;-5010744238007635986&quot;,
      releasedata: {
          releaseId: &quot;508054512004262880&quot;,
          name: &quot;prog rel1&quot;,
          projectId: null,
          programId: &quot;1&quot;,
      },
      done: false,
  };
  </code></pre>
  <p>My Code :</p>
  <p>Parent :</p>
  <pre><code>componentDidMount: function(){
          $.ajax({
              url: &quot;http://localhost:8080/app/restapi/getreleasedata/&quot;+Key+&quot;?access_token=&quot;+accesstokenvalue+&quot;&quot;
          }).then(function(data) {
               this.setState({data: data});
                        console.log(data);
              }.bind(this))
      },
  render: function(){
      return (
              &lt;PbiHeader releaseData={this.state.data.releasedata}  /&gt;                
      )
    }
  });
  </code></pre>
  <p>Child Component :</p>
  <pre><code>var PbiHeader = React.createClass({
      render: function () {
          return (
              &lt;tbody&gt;
                  &lt;tr&gt;
                      &lt;td&gt;{this.props.releaseData.name}&lt;/td&gt; //Here i am getting
                      undefined and i am stuck with syntax to fetch object
                      releaseData's name
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          );
      },
  });
  </code></pre>
  <p>Any help would be great.</p>