Typescript const to functions component type.
How to convert this const to function in typescript
const Home: NextPage = () => {
return <>...</>
}
to
//where NextPage type will go?
function Home () {
return <>...</>
}
const Home: NextPage = () => {
return <>...</>
}
to
//where NextPage type will go?
function Home () {
return <>...</>
}
