Check out a free preview of the full Building Web Apps (with React, Ampersand, ES6 and Webpack) course:
The "Creating a Global App Object" Lesson is part of the full, Building Web Apps (with React, Ampersand, ES6 and Webpack) course featured in this preview video. Here's what you'd learn in this lesson:
Up until now, Henrik has been referencing an app property that was added directly to the window object. This convention can be a little messy and hard to read. Henrik demonstrates how to use the ampersand-app module to create a global app object which can be required more cleanly in other components.