title: How to get Values of Response ReactJs
body: <p>Hey guys im pretty new in developing with react.</p>
  
  <p>I got some problems to fetch data from my json response</p>
  
  <pre><code>axios.get('http://localhost:9000/test')
  .then(function (response) {
      console.log(response.data.name);
      console.log(response.name)
  });
  </code></pre>
  
  <p><br></p>
  
  <pre><code>{
      "name": "mkyong",
      "age": 30,
      "address": {
         "streetAddress": "88 8nd Street",
         "city": "New York"
      },
      "phoneNumber": [
      {
         "type": "home",
         "number": "111 111-1111"
      },
      {
         "type": "fax",
         "number": "222 222-2222"
      }
     ]
  }
  </code></pre>
  
  <p>The console shows me undefined.
  Whats the problem why i cant get the data via plain js?</p>