Open4
Reactの環境構築

アプリの立て方
作業ディレクトリへ移動後
shell
npx create-react-app app1
app1のところは,任意で大丈夫です。

buildフォルダの作り方
作業ディレクトリへ移動後
shell
npm run build
少し待つと,buildフォルダが自動的に生成されます。

buildが走らない
shell
$npm run build
> app@0.1.0 build
> react-scripts build
sh: react-scripts: command not found
などと表示される場合
Node.jsやReactは入っているのになー。
そんな時は,素直にインストールしましょう。
shell
npm install react-scripts --save

ローカルで走らせる
shell
npm start