Join Carl Peaslee for an in-depth discussion in this video The Fetch API, part of React: ES6, ES2016, and Beyond.
Here we've got these variables, one with the url…and one that's returning this options object.…Conveniently, these are exactly what we need…to make a Fetch request.…To use Fetch, we simply call Fetch,…and Fetch wants two arguments.…The first argument is going to be the url…that we're going to send it to.…So in our case, we've set a variable called Shakespeare API…equal to a url,…and then our second argument needs to be a request object.…So conveniently, we have created a function that's going to…
- Using const and let
- Importing and exporting modules
- Arrow functions
- Destructing assignments
- Arguments and template literals
- Extended parameter handling with the spread operator
- Generating custom styles
- Classes, getters and setters
Skill Level Intermediate
1. Variables and Declarations
2. Arguments and Template Literals
4. Promises and Async
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.