How to handle role based routing and role based component in React

preview_player
Показать описание
This video covers the way to handle role based routes and role based components. You can use this approach in your small or even bigger projects to handle multiple user permission and UI render.

⭐ Features - Key ideas you will learn from this video are: ⭐
🔸 React Router V6
🔸 Handling role based route render
🔸 Handling role based component render

⭐ Tech Stacks ⭐
🔸 React
🔸TypeScript
🔸React Router v6
🔸CSS

➤Live Demo:
➤ Github Repository:

⭐ Timestamps ⭐

0:00 Introduction
02:16 Modify user state for role
04:52 Update ProtectedRoute for role state
13:27 With Permission Component

React Role based component
How to handle Role based Route in React
React handle role and permission
React for production
Learn React faster

#reactRouterRole #protectedRoute #reactroute
Рекомендации по теме
Комментарии
Автор

Your tutorial became a life saver for me on last day of project submission .Thank you !!

ajayreddykanduru
Автор

Thank you for creating this tutorial. Helped me to learn more things and gained some knowledge of good practices.

md.obaydulhoque
Автор

Thankyou for creating this video, can you make a video on best practices for organising routes?

visheshbajpayee
Автор

One thing no one mention about roles is that how we will get roles during login instead of manually setting roles, ,, if a user want to create an account, then how we will set roles for him in front end, ,,that no body is talking about ❤️❤️

usmanshahid
Автор

How about situations where new custom roles can be created by the user, would conditional rendering still work?

sookwalinga
Автор

Great concept and good explanation. Pls, can this be achieved with react-router V5 because that is what my existing app is built on?

yaqubadesola
Автор

how can i restrict user to add, edit, delete access on pages based on the role and permission plz help

Me_and_nature
Автор

Can you please make small tutorial how to fetch data from mongodb with node and show those data in your react application

shashwattulsyan