I\'m pulling my hair out trying to render multiple layouts with React Router v4.
For instance, I\'d like pages with the following paths to have layout 1:
So, for this you should use render function (https://reacttraining.com/react-router/core/api/Route/render-func)
A really good article that helped me: https://simonsmith.io/reusing-layouts-in-react-router-4/
In the end you will be use something like this: