Next is one of most popular react framework for building awesome web apps with cool feature.

Typescript

TS is super set of JavaScript with type features. You can write JS apps and modules with other languages and TS will convert them to JavaScript for you.

Following TS post may help you learn more about Typescript

How to add TS to existing Next Project ?

First up all create tsconfig.json file at the root of the project , you need not fill the file and run the npm run dev

Second step covert your .js files with ts and change the code. The component file required to have tsx extension.


This free site is ad-supported. Learn more