DEV Community

loading...
Cover image for Full Tutorial #13: Setting Up Private Routes in React Router | Microservices Chat App Using React, Node and GraphQL

Full Tutorial #13: Setting Up Private Routes in React Router | Microservices Chat App Using React, Node and GraphQL

Better Coding Academy
・1 min read

About Me: I've been a professional web developer for just over 10 years now. I'm currently the lead web development instructor at Better Coding Academy, and as part of what I do, I post videos on our YouTube channel at https://www.youtube.com/c/BetterCodingAcademy.

(Subscribe for awesome web development content!)

Part 13 of the Microservices Chat App is here! In this episode, I show how we can create a custom <PrivateRoute /> component to conditionally grant access to certain routes from within the React app.

Happy coding!

Source code: https://github.com/lucaschen/microservices-chat-demo

Discussion (0)