参考URL:https://qiita.com/gumiTECH/items/4b82e4e3757f226df6b0
前提: node jsをインストールしておき npmコマンドが使えるようにしておく。
以下のコマンドでreact関連のパッケージをインストールする。
npm install -g create-react-app
その後、任意のフォルダに移動し、以下のコマンドを実行(以下は、[react-sample]というアプリ名の例) ※そこそこ時間かかる。
create-react-app react-sample
以下のコマンドを実行する。
cd react-sample
npm start
http://localhost:3000/
でアプリケーションのページを開くことができる。