From 87a9b26aebc43afa379615ac238c2f95d863d432 Mon Sep 17 00:00:00 2001 From: Daniel Martinez Date: Mon, 17 Aug 2015 20:52:16 -0400 Subject: [PATCH] Document strict requirement for `type` property on actions --- docs/basics/Actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basics/Actions.md b/docs/basics/Actions.md index 0b93aef252..4744ae9fb5 100644 --- a/docs/basics/Actions.md +++ b/docs/basics/Actions.md @@ -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';