Is NextPage necessary when building NextJS apps in TypeScript

answer re: Is NextPage necessary when building NextJS apps in TypeScript

Oct 30 ’24

1


This content originally appeared on DEV Community and was authored by Pavel Fedotov

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({


This content originally appeared on DEV Community and was authored by Pavel Fedotov


Print Share Comment Cite Upload Translate Updates
APA

Pavel Fedotov | Sciencx (2024-11-10T18:38:02+00:00) Is NextPage necessary when building NextJS apps in TypeScript. Retrieved from https://www.scien.cx/2024/11/10/is-nextpage-necessary-when-building-nextjs-apps-in-typescript/

MLA
" » Is NextPage necessary when building NextJS apps in TypeScript." Pavel Fedotov | Sciencx - Sunday November 10, 2024, https://www.scien.cx/2024/11/10/is-nextpage-necessary-when-building-nextjs-apps-in-typescript/
HARVARD
Pavel Fedotov | Sciencx Sunday November 10, 2024 » Is NextPage necessary when building NextJS apps in TypeScript., viewed ,<https://www.scien.cx/2024/11/10/is-nextpage-necessary-when-building-nextjs-apps-in-typescript/>
VANCOUVER
Pavel Fedotov | Sciencx - » Is NextPage necessary when building NextJS apps in TypeScript. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/11/10/is-nextpage-necessary-when-building-nextjs-apps-in-typescript/
CHICAGO
" » Is NextPage necessary when building NextJS apps in TypeScript." Pavel Fedotov | Sciencx - Accessed . https://www.scien.cx/2024/11/10/is-nextpage-necessary-when-building-nextjs-apps-in-typescript/
IEEE
" » Is NextPage necessary when building NextJS apps in TypeScript." Pavel Fedotov | Sciencx [Online]. Available: https://www.scien.cx/2024/11/10/is-nextpage-necessary-when-building-nextjs-apps-in-typescript/. [Accessed: ]
rf:citation
» Is NextPage necessary when building NextJS apps in TypeScript | Pavel Fedotov | Sciencx | https://www.scien.cx/2024/11/10/is-nextpage-necessary-when-building-nextjs-apps-in-typescript/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.