React Router 4 “official way” of doing role authorization is simple and clear, but a bit ugly to my taste. This is the simplified version to achieve the same goal:

And yes — React Router 4 is the only case I know developers did not screw their product after the 3rd version but instead made it awesome.


Leave a Reply

Your email address will not be published. Required fields are marked *