guides
guides copied to clipboard
Using Fetch API
trafficstars
Compare to using axios
- why
fetch()data? - Making GET requests in a browser
- how to use
fetch() - what are promises (an object representing the eventual completion of an asynchronous function)
- how to 'unbox' the promise? (
asyncawait) - What is Same Origin Policy? What is Cross Origin Resource Sharing?
- code-along: fetch data from https://data.gov.sg/dataset/carpark-availability and present in React app
- lab: fetch data from: https://node-hnapi.herokuapp.com/news