Update flux
This commit is contained in:
parent
58fee2d6a4
commit
cdca306623
6
flux.md
6
flux.md
|
@ -131,7 +131,8 @@ d.register(function (data) {
|
||||||
|
|
||||||
## With Views
|
## With Views
|
||||||
|
|
||||||
Components can listen to Dispatchers.
|
### Listen to dispatchers
|
||||||
|
Views (React Components) can listen to Dispatchers.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var TodoApp = React.createClass({
|
var TodoApp = React.createClass({
|
||||||
|
@ -153,7 +154,8 @@ var TodoApp = React.createClass({
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
Or to Stores.
|
### Listen to Stores
|
||||||
|
Or to Stores's `change` events.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue