How Layouts & Route Groups Work - Next.js 13

Опубликовано: 27 Сентябрь 2024
на канале: Nick De Raj
4,292
19

Taking a look at how Layouts work in Next.js 13, and how we can maintain state between pages of a certain component without the need to re-render. This is especially useful for navbars/sidebars/global wrappers. We also take a look into route groups and how we can group layouts together without having any effect on the URL. If it helped, leave a like and comment on what you'd like to see in future videos! ✌️

The Code & more: https://nickderaj.com/youtube/nextjs-...

Chapters:
0:00 Introduction
0:33 Overview of Layouts
2:20 The Root Layout
3:52 Route Groups
4:35 Nested Layouts
6:50 Showing The Layout Doesn't Re-Render
7:05 Outro