Join Alex Banks for an in-depth discussion in this video Using ES6 imports, part of Building a Polling App with Socket IO and React.js.
- ECMAScript Version 6 or ES6 is already upon us…and many of us have started using ES6…in our day-to-day code.…React is also ready for ES6,…but there are some changes to the way…our components work with properties,…state, and autobinding of child functions…that we will have to include to use full ES6 syntax.…In this and the next couple of lessons,…we will upgrade a handful of components…to ES6 syntax so we can see…what those primary differences are.…And I just wanted to highlight the fact…that on Line 10 here we are using the babel loader…and because we are already using the babel loader,…we already have support for ES6.…
The babel loader is going to convert our ES6…into a format that is readable by most all browsers.…So we can go ahead and start changing our code…to ES6 and our application will still work.…So let's go ahead and get started.…I am going to open up our app client.…The first thing that we want to cover is…there's a different way to import elements…other than require statements.…ES6 supports import.…
- Setting up the environment
- Connecting sockets
- Handling disconnects
- Setting up the React.js router
- Passing state to child components as properties
- Joining the presentation
- Starting and running the presentation
- Asking and answering questions
- Graphing results
- Upgrading to ES6
Skill Level Intermediate
1. Setting Up the Environment
Setting up npm scripts4m 22s
2. Connecting Sockets
3. App State and Routes
4. Joining the Presentation
5. Starting the Presentation
6. Questions and Answers
7. Graphing Results on a Scoreboard
8. Upgrading to ES6 Syntax
Next steps1m 1s
- 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.