efbabd2a5e
Converted example to TypeScript to match Contribution docs. ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm build && pnpm lint` - [X] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) |
||
---|---|---|
.. | ||
pages | ||
.gitignore | ||
package.json | ||
README.md | ||
tsconfig.json |
With App
layout example
Shows how to use _app.tsx
to implement a global layout for all pages.
Deploy your own
Deploy the example using Vercel or preview live with StackBlitz
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-app-layout with-app-layout-app
yarn create next-app --example with-app-layout with-app-layout-app
pnpm create next-app --example with-app-layout with-app-layout-app
Deploy it to the cloud with Vercel (Documentation).