Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Fetch API #66

Open
mabelleeyanhwa opened this issue Dec 2, 2019 · 0 comments
Open

Using Fetch API #66

mabelleeyanhwa opened this issue Dec 2, 2019 · 0 comments

Comments

@mabelleeyanhwa
Copy link
Contributor

mabelleeyanhwa commented Dec 2, 2019

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? (async await)
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant