Skip to content

Commit

Permalink
Document strict requirement for type property on actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Martinez authored and gaearon committed Sep 12, 2015
1 parent 71393b7 commit 87a9b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basics/Actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Here’s an example action which represents adding a new todo item:
}
```

Actions are plain JavaScript objects. By convention, actions should have a string `type` field that indicates the type of action being performed. Types should typically be defined as string constants. Once your app is large enough, you may want to move them into a separate module.
Actions are plain JavaScript objects. Actions must have a `type` property that indicates the type of action being performed. Types should typically be defined as string constants. Once your app is large enough, you may want to move them into a separate module.

```js
import { ADD_TODO, REMOVE_TODO } from '../actionTypes';
Expand Down

0 comments on commit 87a9b26

Please sign in to comment.