/**
*
* Main layout to be used in every page whereever header and footer needed to be linked
*
*/
import Header from "../header/header"
import Footer from "../footer/footer"
export default function MainLayout({children}){
return (
<>
<Header/>
{children}
<Footer/>
</>
)
}
Nextjs
The code above creates a layout where the Header and Footer sections are linked at the top and bottom of every page, respectively.
Shortcut: nextjs.layout.main
0 Comments
Add Comment
Log in to add a comment