title: how can I return axios data to feed view?
body: <p>I am building feed news using reactjs, but however, I notice that Axios is not returning data back to my browser feed in order to process the data, what am I missing on this code?</p>
  <pre><code>const browserFeed = async () =&gt; {  
      const response = await browse();
      console.log(response)
      setFeed(response.data.results);  // undefined
      setIntialized(true);  
    };
  
  
    export const browse = () =&gt;  {
      axios.get('xxxxxxxxxxx').then((result) =&gt; {
        return result // undefined
      }).catch((error) =&gt; {
        return error;
      })
    }
  </code></pre>