Rewriting custom route to use render prop instead of component prop in React Router

后端 未结 0 992
有刺的猬
有刺的猬 2021-01-14 09:22

I have a React app that uses React Router. I have a bug in my code that is due to something in my custom ProtectedRoute component:

const ProtectedRoute = ({ c         


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