Next.js Per-Page Layouts and TypeScript Next.js allows developers to set up dynamic layouts per-page. Benefits and details of this approach can be read here. However, doing what is described there will generate some issues when we use TypeScript in strict mode. What’s wrong Example code from the official documentation: // pages/_app.js export default function MyApp({…

Read More