DEV Community

Discussion on: React Protected Routes (Next js & CRA) simple but efficient

Collapse
 
ataparvinghods profile image
Ata Parvin Ghods

Dear luanau.
We are returning protected component(login page), which means if user is not logged in you want to show user login page.
But this is an example you can change them on your own.
Hope I made it clear.

Collapse
 
luanau profile image
luanau

Thanks Ata.