axioscomponentDidMount() lifecycle method for fetching datanpm
git checkout bootcamp
npm install or npm iyarn
git checkout bootcamp
yarnnpm install axios or npm i axiosyarn
yarn add axiospostsAPI_ENDPOINT: https://jsonplaceholder.typicode.com/users/1/postsYou can find the code we did for this section in bootcamp-fetch branch.
🌲 branch:
git checkout bootcamp-fetch