Public, private, and role-based routes in React

Umair Ahmed
JavaScript in Plain English
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.

  1. Version 1 is tightly coupled with the project in which I have introduced this technique.
  2. No child/nested route support.
  3. No technique to define roles…

--

--

Web & Mobile Application Developer, interests: Reading, Writing, and Open Source Contribution.