0
0
JRJose Romero
nextapplayout
NextJS Javascript RecipesCreates an example _app.jsx
with per-page layout capabilities
Library: next
Shortcut: next.app.layout.create
Filename pattern: *_app.jsx
export default function App({ Component, pageProps }) {
// Use the layout defined at the page level, if available
const getLayout = Component.getLayout || ((page) => page)
return getLayout(<Component {...pageProps} />)
}