maandag 25 januari 2021

Next js with typescript intall

 

create new app with

yarn create next-app

yarn is default used 

Add tsconfig.json file to root of application

Add typescript to project

yarn add --dev typescript @types/react @types/node

run yarn dev and the tsconfig.json file will be populated with the right content.

Rename all components and pages from .js to .tsx



Geen opmerkingen:

Een reactie posten