TypeScript - 설치
2022. 3. 20. 01:05ㆍTIL(Today-I-Learned)/TypeScript
728x90
반응형
설치방법-01
- cli로 설치하기
$ npx create-react-app my-app --template typescript
또는
$ yarn create react-app my-app --template typescript
my-app 부분에 프로젝트 이름을 쓰면 된다.
설치방법-02
- 기존 React 작업에 TypeScript를 적용하기
$ npm install --save typescript @types/node @types/react @types/react-dom @types/jest
또는
$ yarn add typescript @types/node @types/react @types/react-dom @types/jest
728x90
반응형
'TIL(Today-I-Learned) > TypeScript' 카테고리의 다른 글
TypeScript - 시작 (0) | 2022.03.12 |
---|