Is NextPage necessary when building NextJS apps in TypeScript
Pavel Fedotov
Posted on November 10, 2024
The most voted answer is not correct in my NextJs 15 project.
export default function Post: NextPage<Props> ({ project }) {
}
It asks for
'=>' expected.
And in addition, this is not how the function is declared.
If we want to keep a function
export default function Post({
…
💖 💪 🙅 🚩
Pavel Fedotov
Posted on November 10, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.