Redirecting Users

Let's update the signup component and tests so that the logged-in users are automatically redirected to the dashboard.

Now that our new routing has been set up, we can redirect our users to this new view. First, we’re going to add this redirect to our component. Then we’ll update our tests for this new functionality.

Use the updated code below to make the changes instructed in the lesson.

Get hands-on with 1400+ tech skills courses.