DEV Community

Discussion on: Layout Persistence in Next.js

Collapse
 
ramirezsandin profile image
Jorge • Edited

Hi, do you mean to use the Head tag and title tag inside every page?

Would it be possible to have the Head tag in the layout component and pass the title variable somehow when you are doing Page.Layout = MyLayout?

Thread Thread
 
ozanbolel profile image
Ozan Bolel • Edited

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?