Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Actions and Protected Routes

This playlist is part of Learn React Router 6

Actions and Protected Routes

40 lessons2 hours 39 min

1. Initial Login Form
2:22
2. Note from the future: importing image assets in Vite
2:47
3. Protected Routes Intro
5:32
4. Protected Routes - AuthRequired Layout Route
3:37
5. Protected Routes - Conditionally send to /login page
4:03
6. Protected Routes Quiz
1:39
7. Protected Routes - with loaders
4:35
8. Protected Routes w/ loaders
4:20
9. Parallel Loaders demo
3:31
10. Challenge: Protected Routes w/ loaders
1:14
11. Challenge: Protected Routes in VanLife - Part 1
2:06
12. Aside challenge: move remaining fetching to loaders - Part 1
5:33
13. Aside challenge: move remaining fetching to loaders - Part 2
4:27
14. Challenge: Protected Routes in VanLife - Part 2
8:11
15. Send login message prompt to login page
3:01
16. Consume message from search param on login page
7:37
17. Pass message to Login page
3:46
18. 🌶️ Take: Forms in React are bad
2:29
19. Setting up for authentication - happy path
4:50
20. Setting up for authentication - sad path
8:01
21. useNavigate()
3:44
22. React Router Form Component
2:54
23. Setting up the Action function
4:28
24. Add form and action to VanLife
2:14
25. Action function - params
1:37
26. Action function - request
3:24
27. Get form data in VanLife
1:40
28. Use data in action to log in
2:32
29. Better (but still fake) auth
3:41
30. Challenge: send user to /host route after log in
3:23
31. Form replace
5:12
32. useActionData
4:24
33. Action error handling
3:05
34. Action error handling in VanLife
2:58
35. useNavigation()
4:05
36. useNavigation in VanLife
3:56
37. get previous route pathname
6:55
38. redirectTo - part 1
4:21
39. redirectTo - part 2
6:18
40. redirectTo in VanLife
4:43