React 路由器 v4 角色基础授权

React router v4 role base authorization

我是 React 世界的新手,添加了路由器 v4,但无法实现 React 角色基础授权。让我知道是否有任何来源让我走上正确的道路。

看看react-router-role-authorization (the approach described in Role-based authorization using React-Router) and redux-auth-wrapper