An open API service indexing awesome lists of open source software.

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での実装サンプル

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
~~~