DEV Community

Discussion on: Layout Persistence in Next.js

ozanbolel profile image
Ozan Bolel Author • Edited on

Yes I meant that.

It is possible but it adds an unnecessary complexity imho.

Thread Thread
joshuatuscan profile image
Joshua Tuscan

What if you want to pass a prop to the MyLayout so that you can let your nav component know what page you are on? How do you pass props to MyLayout?