Render multiple components in React Router

后端 未结 6 1982
野趣味
野趣味 2021-02-05 20:54

I\'m used to application layouts with multiple yield areas, i.e. for content area and for top bar title. I\'d like to achieve something similar in React Router. For example:

6条回答
  •  暖寄归人
    2021-02-05 21:20

    To render multiple components you can do this:

     
            
    } />

    Here I'm passing parameter to specific conponent.

提交回复
热议问题