https://github.com/maechabin/redux-sample
ReduxとReact-Reduxでの実装サンプル
https://github.com/maechabin/redux-sample
react redux redux-sample
Last synced: about 1 year ago
JSON representation
ReduxとReact-Reduxでの実装サンプル
- Host: GitHub
- URL: https://github.com/maechabin/redux-sample
- Owner: maechabin
- Created: 2016-05-14T15:11:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-18T11:04:12.000Z (about 9 years ago)
- Last Synced: 2025-04-01T06:13:51.302Z (about 1 year ago)
- Topics: react, redux, redux-sample
- Language: JavaScript
- Homepage: http://mae.chab.in/archives/2885
- Size: 203 KB
- Stars: 29
- Watchers: 1
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redux-sample
Reduxとreact-reduxを使った実装サンプル(かなり簡易版)
できる限りシンプルな構成でのRedux実装
## デモ
フォームに入力したテキストを表示させるだけのもの。
http://jsrun.it/maechabin/WivU
## サンプルソース
- [src/app.jsx](https://github.com/maechabin/redux-sample/blob/master/src/app.jsx)
- [index.html](https://github.com/maechabin/redux-sample/blob/master/index.html)
## サンプルの確認
### 1. サンプルのダウンロード
~~~
$ git clone git@github.com:maechabin/redux-sample.git redux-sample
~~~
### 2. サンプルをcloneしたディレクトリに移動して、必要なパッケージのインストール
~~~
$ cd redux-sample
$ npm install
~~~
### 3. サンプルを開く
~~~
$ open ./index.html
~~~
## サンプルの修正
### 1. 「.src/app.jsx」を修正したら、以下のコマンドを実行
~~~
$ npm run build
~~~
### 2. サンプルを開く
~~~
$ open ./index.html
~~~