DEV Community

Discussion on: Multiple Layout In React Router

Collapse
 
mai301 profile image
Mai-301

Can you please help where should i add those layout routes at the app architecture? i mean at the pages folder or components for instance?
i believe it should not be neither page nor components .

Appreciate your help.

Collapse
 
watzon profile image
Chris Watson

You can put them anywhere. In most cases with MVC you'd have a views directory with a layouts directory inside of it, but it's really up to you.