Reactプロジェクトを構築(自分用)

2022/09/22に公開

プロジェクトを構築

npx create-react-app@latest react-sample --template typescript
  • npx create-react-app [プロジェクト名]
  • パッケージ名の後ろに@を入れると使用するバージョンを指定できる
  • 最新のものを使用する場合@latestと指定

プロジェクトのルートディレクトリ直下へ移動し、開発サーバを起動

cd react-sample
npm run start
  • npm と yarnがある
  • npm と yarn の違いは時間があるときに調べる (!)

正常起動の場合

webpack compiled successfully
No issues found.

Discussion

ログインするとコメントできます