Redirecting Users
Let's update the signup component and tests so that the logged-in users are automatically redirected to the dashboard.
We'll cover the following
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 1000+ tech skills courses.
Learn to code, grow your skills, and succeed in your tech interview