API
Get data from external API
From the sample code, we used async function to fetch data from API
How to use it ?
As you see, the function will be launch in componentDidMount. After that, we set those data into our state.
Last updated