Next.js Discord

Discord Forum

What is the best way to use layout in /pages with typescript

Unanswered
Brewer's Blackbird posted this in #help-forum
Open in Discord
Brewer's BlackbirdOP
I read the docs and copied the code for layout with typescript, but eslint keeps throwing errors. Is it okay if i will use the layout in a page

const Home: NextPage = () => {
  return <Layout title="Hello"><h1>Hello</h1></Layout>
}

0 Replies