[TypeScript][React] CRA(Create React App)



※ノードバージョン14以上が必要
  • CRA取付
  • npm install -g create-react-app
  • CRA使用
  • npx create-react-app [프로젝트 이름] --template typescript
    ※ 프로젝트 이름
    	- 대문자 불가능
    	- . 으로 프로젝트 이름 지정하면 해당 폴더에 설치
  • CRAを行う
    スタート
    ※ README.md 가 존재하면 react README로 대체됨
  • react Appの実行
  • npm start
    ※ 프로젝트명을 지정하면 해당 폴더로 진입 후 실행(. 으로 하면 폴더 이동 없이 바로 진행)
    cd [프로젝트 이름]
  • http://localhost:3000/接続
  • 参考記事
    https://create-react-app.dev/docs/getting-started/