This course has been updated! We now recommend you take the Complete Intro to React, v8 course.

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.

Get Unlimited Access Now