Coding with Callie reposted this
For my Project Planning Tool application with Coding with Callie I have been focusing on the user account; creating a sign-up form and log-in form along with log-in and log-out functionality. This has also involved form data validation on sign-up, password hashing and saving new users to a database. A tool that was new to me which I have used in the project was the React Router useOutletContext hook, allowing you to share data between parent and child routes without having to pass props down through components. The parent route provides context using a context prop on an <Outlet /> component and the child route can access this context using the useOutletContext hook. I've also learnt about using a JWT token which when used is generated after username and password verification by the server and then sent back to the client. This is stored in local storage or a cookie. For subsequent requests the client includes this token in the Authorisation header. The server then verifies and if valid processes the request. Onto user account maintenance...
Yes, useContext React hook makes things so much smoother when passing user data in applications! I used it for the first time a couple weeks ago.
YAY! Great work!