menu
up-caret
down-caret

Reach

Accessible React

# General

General Chatter

Trending conversations
Router: A title prop to update page titles
@seanmcp · 8h
Issues with Storybook and Reach-UI
@qbnflaco · 3d
Google Analytics
@hellojere · 2d
React Suspense + lazy over Parcel.js
@david-gomez · 46d
How to use dialog with react-pose?
@darkeye · 39d

Does anyone has resources for Role base routing in reach router?

Sakhi Mansoor (@sakhishe) · January 1, 2019 at 9:25pm

Does anyone has resources for Role base routing in reach router?

January 1, 2019 at 9:25pm

Thanks in advance


January 7, 2019 at 6:36pm

I have created a HOC with receives an array containing the roles which are allowed to view the route. See https://gitlab.com/openpatch/authentification/blob/master/ui/src/withAuth.js

like-fill
1
  • reply
  • like