typescript를 사용하는 create-react-app 다음의 명령어를 실행한다. # npm 사용 $ npx create-react-app [project name] --template typescript # yarn 사용 $ yarn create react-app my-app --template typescript [project name]으로 폴더가 생기고, 그 안에 typescript를 사용하는 react 코드들이 생성된다. cra를 실행하며 남는 로그는 다음과 같다(2024.01.12 기준). Creating a new React app in [project path].
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template-typescript... added 1485 packages in 10s 250 pa...
#
cra
#
react
#
typescript
원문 링크 : [개발] create-react-app typescript