Multiple layouts with React Router v4

I was searching for a way to add use multiple layouts with React Router v4. I could only find examples for v3, but was inspired by the Redirects (Auth) example in the docs. I created a simple wrapper component for a Route that allows a layout prop to be passed which renders the component as a child of the layout:


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *