-
Resct + TypeScript 설정하기⌨️ conceptualization/Typescript 2022. 7. 8. 07:58728x90
Resct + TypeScript 설정하기
- typescript 에 react 라이브러리를 적용한 프로젝트 환경을 세팅해보자(아래공식문서 참고)
1. 설치
1) TypeScript 로 새로운 Create React App 프로젝트를 시작하려면 ?
npx create-react-app my-app --template typescript
or
yarn create react-app my-app --template typescript
2) 기존 Create React App 프로젝트에 TypeScript 를 추가하려면 ?
npm install --save typescript @types/node @types/react @types/react-dom @types/jest
or
yarn add typescript @types/node @types/react @types/react-dom @types/jest
'⌨️ conceptualization > Typescript' 카테고리의 다른 글
타입으로 사용되는 인터페이스 (Interface) (0) 2022.09.09 타입 명시 (Type Annotations) (0) 2022.09.09 타입 추론 (Type Inference) (2) 2022.09.09 TypeScript 개발환경 설정하기 (0) 2022.06.22 TypeScript 왜 쓰는 것일까? (0) 2022.06.22