Different component in a same React route based on roles

前端 未结 0 1764
一生所求
一生所求 2021-01-31 15:51

I want to set different component on a same React route based on user roles.

Here\'s what I did.

// AppRouter.js
const AppRouter = () => {

    const {l         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题