create-react-appでReact-Redux-Sagaの開発環境構築メモ
- React開発環境構築ツール(create-react-app)インストール
$ npm install -g create-react-app
- プロジェクト作成
$ create-react-app my-react-app
- デフォルトプロジェクト実行
$ cd my-react-app
$ npm start
※製品版としてbuildする場合は
$ npm run build
- reduxインストール
$ npm install --save redux react-redux
- ディレクトリ作成
$ cd src
$ mkdir actions components containers reducers
- Reduxデバック用redux-loggerインストール
$ npm install --save redux-logger
- redux-sagaインストール
$ npm install --save redux-saga
- Ajaxライブラリaxiosインストール
$ npm install --save axios