Render multiple components in React Router

后端 未结 6 1965
野趣味
野趣味 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:39

    To passe multiple component you can do like this :

    
    
    

    See the doc here : https://github.com/ReactTraining/react-router/blob/v3/docs/API.md#named-components

提交回复
热议问题