본문 바로가기
React/Next.js

Next.js + TypeScript 사용하기 !

by 박헹구 2022. 2. 10.
반응형

처음 실행은 npx나 yarn을 사용해서 TypeScript를 이용한 프로젝트를 설정해 줄 수 있다. 

npx create-next-app@latest --ts
# or
yarn create next-app --typescript

https://nextjs.org/docs/basic-features/typescript

 

Basic Features: TypeScript | Next.js

Next.js supports TypeScript by default and has built-in types for pages and the API. You can get started with TypeScript in Next.js here.

nextjs.org

 

반응형

댓글