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

前端 未结 0 1863
日久生厌
日久生厌 2020-12-23 08:48

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,

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