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