Passing props to component in React Router 4

后端 未结 6 1781
太阳男子
太阳男子 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:18

    I'll do it like the following to improve clarity.

    const myComponent = 
    
    
    
    

    By this your router code won't get messed up!.

提交回复
热议问题