I am a computer engineering graduate and an experienced Front-end developer. Though I am
working with HTML, CSS3 JavaScript, and TypeScript mostly in React.js, I am open to any
Front-end framework.
In this react-router version 6 implementation,how i can show alert or popup message for unlogged user when i trying to navigate private route? if user not logged-in it will show the message "please login first" with login button.
"< L i n k to='/login' > login< L i n k >"
if user not logged-in, user always navigate/redirected to home page or other public route.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In this react-router version 6 implementation,how i can show alert or popup message for unlogged user when i trying to navigate private route? if user not logged-in it will show the message "please login first" with login button.
"< L i n k to='/login' > login< L i n k >"
if user not logged-in, user always navigate/redirected to home page or other public route.