title: Axios gets undefined
body: <p>I have React component FetchQoute which is supposed to get response from the provided URL, but it shows <strong>undefined</strong> instead ? </p>
  
  <pre><code>class FetchQuote extends Component {
    constructor(props) {
      super(props);    
      this.state = {
        jokes: []
      };    
    }
  
    componentDidMount() {
      console.log(res.value); //undefined
      axios.get('https://api.icndb.com/jokes/random')
        .then((res) =&gt; {       
          this.setState({data:res.value.joke});//error TypeError: Cannot read property 'joke' of undefined
        })
  
    }
  
  }
  </code></pre>
  
  <p>That URL can be easily tested in browser to return JSON data correctly, including res.value.joke</p>