Check out a free preview of the full Building Web Apps (with React, Ampersand, ES6 and Webpack) course:
The "Exercise: Securing Routes" 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:
In this exercise, you will create a requiresAuth function that will help secure routes that require authentication. This function will return a function that validates the current user is logged in. Henrik sets up the exercise and provides a couple hints to get everyone started.