darksh3ll
11/3/2018 - 10:34 AM

axios et componentDidmount

axios et componentDidmount

retrieveData = async () => {
  // config url
  const url ="";
  const data = await axios.get(`${url}`);
  console.log(data);

};

componentDidMount() {
  this.retrieveData();
}