Typescript 를 사용하는 react app 만들기
npx create-react-app my-app — template typescript
or
yarn create react-app my-app — template typescript
my-app 부분에 원하는 폴더의 이름을 넣으면 된다.
폴더 이름에는 대문자를 사용할 수 없다
이미 존재하는 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
그리고 typescript file로 이름 변경하기
ex)src/index.js to src/index.tsx
서버 재시작 하기