RouteComponentProps from react-router-dom with custom properties

前端 未结 0 771
星月不相逢
星月不相逢 2021-01-29 05:37

I have a component called Navbar which uses the location object from history, as defined in RouteComponentProps.

I tried to add a custom prop to my component like so:

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