TypeScript Error: Type 'RouteProps' is not assignable to type 'ElementType'

前端 未结 0 655
眼角桃花
眼角桃花 2020-12-23 08:35

I\'m implementing a PrivateRoute.tsx component, where it takes a component as a prop and conditionally renders that component if the user is logged in. However,

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