Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Junwen Qin committed Dec 8, 2015
1 parent 2f6c2c9 commit fad9979
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The thunk function will dispatch following flux standard actions(FSA) for that p
| `${actionName}_FAILED` | promise rejected | reason of promise | 'FAILED' |


#### Example
## Example
```js
//actions.js
const editTodo = createPromiseThunk('EDIT_TODO', function(todo) {
Expand All @@ -39,3 +39,5 @@ handleEdit(todo){
}
```

Check `./examples/todo-mvc` for further info.

0 comments on commit fad9979

Please sign in to comment.