Skip to content

Instantly share code, notes, and snippets.

View KyleWong2510's full-sized avatar

Kyle Wong KyleWong2510

View GitHub Profile

React Router Prework

This gist contains a short assignment I'd like everyone to complete before our formal lesson. The prework involves reading some of the React Router documentation, and will allow us to keep the lesson more hands on.

Instructions

  1. Fork this gist
  2. On your own copy, go through the listed readings and answer associated questions
  3. Comment a link to your forked copy on the original gist

Questions / Readings

Take 10 minutes to research the following in breakout groups. When you get back, I'm gonna call on some people to answer and explain.

1. What does the fetch api do?
	Allows us to access data from an api.  GET, POST, PATCH, PUT, DELETE
	
2. What does .fetch() return?
	A Promise (JS Object that represents the eventual completion of an action)

3. What does .then() do? What is the method called on? What does it return?