import Link from 'next/link' import { useEffect } from 'react' function Layouts() { return (

Layout

Read Docs

The React model allows us to deconstruct a page into a series of components. Many of these components are often reused between pages. For example, you might have the same navigation bar and footer on every page.

This page should have an span tag that is added through a layout and the title should have changed in a useEffect

) } Layouts.getLayout = function getLayout(page) { return {page} } function TestLayout({ children }) { useEffect(() => { // Update the document title using the browser API document.title = `Per Page Layout test title` }) return (
Test layout wrapper {children}
) } export default Layouts