Open tayv opened 1 year ago
I'm not sure about the performance but if I remember correctly Layouts in Next.js need a different setup to be shared across pages or across nested routes.
Otherwise they will re-render just like every other component.
See here:
Overview:
The
SideNav
component is used for layout withinLayoutContainerSide
. It receives anarticleList
prop that it maps through to render the list of articles in the side navigation and apply the appropriate css styling. The current article page is highlighted.The Problem: