npx create-react-app [파일이름] --typescript
인터넷 글에 이렇게 써있었는데 TS 설치가 안 됐다
➡ yarn add typescirpt
➡ npm i --save-dev @types/react
하면 ts, tsx파일을 사용할 수 있다. 그런데 기존 파일(App.js, index.js)은 tsx로 안 바뀐다.
공식사이트에는 이렇게 써있었다.
npx create-react-app my-app --template typescript