Public, private, and role-based routes in React
Published in
7 min readAug 11, 2020
Yay, I have come up with another super cool story I would call it RBAC-V2 because it is my second story on the same topic, there was some reason behind version-2 that are listed below.
- Version 1 is tightly coupled with the project in which I have introduced this technique.
- No child/nested route support.
- No technique to define roles…