Using multiple layouts for react-router components

前端 未结 6 1530
执念已碎
执念已碎 2020-12-14 09:22

If I have the following:



  { /* Routes that use layout 1 */ }
  

        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 10:03

    Here's a great way to use multiple layouts with different React components.

    In your router you can use:

    
      
        
        
      
      
        
      
      
    
    

    Source: https://sergiotapia.me/different-layouts-with-react-router-71c553dbe01d

提交回复
热议问题