Join Carl Peaslee for an in-depth discussion in this video Importing and exporting, part of React: ES6, ES2016, and Beyond.
Let's take a second now to look at…the import and export syntax.…I'm going to switch the orientation of these two.…I'm using the Split Right in the item command…so we're going to be exporting from the left…and we're going to be importing here on the right.…Let's imagine that we had a class that we wanted to export…and we wanted that class to be the only thing,…or the main thing that was being exported from that file.…
Then, we could use the syntax,…
- 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.