π¦ URL Routing in React π¦
Posted on Dec 16th, 2021
Todayβs topics
- React Router β v6
- Using local storage with state to store an auth token
π― Project
Continue planning with your team on tackling the Questionbox or Social Ecards projects. By Friday, you should be able to make requests for questions and answers if you are working on Questionbox or make requests for getting or creating cards. Deploy to Netlify as soon as possible (Tip π‘: Your code needs to run locally with no errors before you can deploy it!).
π 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
- Token Authentication Endpoint guide for djoser library -> This is the library being used by the backend, for your reference.
- A Complete Guide to React Router
- The Complete Guide to URL Parameters with React Router