Join Carl Peaslee for an in-depth discussion in this video Async and try-catch, part of React: ES6, ES2016, and Beyond.
Thankfully though, Create React App,…which is what we're using, does work with async.…So let's try turning our fetch to the API…into a function that is an asychronous try/catch function.…And I'm going to delete this,…and I'm going to create a new function.…I'm going to export it, and I'm going to say,…
- 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.