Passing props to component in React Router 4

后端 未结 6 1759
太阳男子
太阳男子 2021-02-05 06:39

I am new to react-router and I just started writing an app using react-router V4. I would like to to pass props to components rendered by and I am w

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-05 07:41

    The render prop is meant for writing inline matches, so your example is the ideal way to pass extra props.

提交回复
热议问题