通过调用
RequireAuth(Component)render,您将
Component在每个渲染调用中使用HOC
进行修饰,从而使每个渲染在每个渲染中都返回一个 新的 Component。
你应该装饰
Group,
CreateGroup并
GroupsMenu用
RequireAuth,出口之前。就像你用
react-redux的
connect。

通过调用
RequireAuth(Component)render,您将
Component在每个渲染调用中使用HOC
你应该装饰
Group,
CreateGroup并
GroupsMenu用
RequireAuth,出口之前。就像你用
react-redux的
connect。