ProgrUmar Logo
Module 1: Foundations & Routing

Layouts, Templates & the Root Layout

Duration: 14 mins

Layouts vs Templates

A layout persists across navigations — great for navbars and sidebars. A template re-mounts on every navigation — useful for animations or per-page analytics.

Every Next.js app requires a root layout.tsx in app/ which must include the <html> and <body> tags.

Chat with us