๐ฆ URL Routing in React ๐ฆ
Posted on Sep 22nd, 2022
Todayโs topics
- Review Login and add Logout
- Using local storage with state to store an auth token
- React Router
๐ฏ Project
You should have detailed wireframes and a user flow outline, and components for at least the initial โpageโ your user is going to see when they arrive at your site. By today, you should be able to make GET requests for questions and their answers (if you are working on Questionbox) or for cards (if you are working on Social E-Cards).
Deploy to Netlify today if you havenโt already!
๐ Read | ๐บ Watch | ๐ง Listen
โ ๏ธ These two resources are for older versions of React Router, so you will see some outdated syntax. For instance Switch
, Redirect
, and the component
prop on Route
exist only in versions of React Router earlier than version 6. However, the main concepts are the same, so these resources can still help you understand the context and usage of React Router.
- ๐บ React Router tutorial video with that quirky guy, Dev Ed
- ๐ React Router tutorial: Adding Navigation to your React App
๐ Resources
- React Router docs
- React Router Main Concepts This is pretty in-depth, and you may not need it, but itโs helpful if you want more explanation.
- A Complete Guide to React Router really comprehensive, really good
- The Complete Guide to URL Parameters with React Router