Skip to content

Commit

Permalink
Update Actions.md
Browse files Browse the repository at this point in the history
PR related to Issue reduxjs#551
  • Loading branch information
matthiasfeist committed Aug 18, 2015
1 parent 8f1b849 commit 433f657
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 @@ -23,7 +23,7 @@ import { ADD_TODO, REMOVE_TODO } from '../actionTypes';
>You don’t have to define action type constants in a separate file, or even to define them at all. For a small project, it might be easier to just use string literals for action types. However, there are some benefits to explicitly declaring constants in larger codebases. Read [Reducing Boilerplate](../recipes/ReducingBoilerplate.md) for more practical tips on keeping your codebase clean.
Other than `type`, the structure of an action object is really up to you. If you’re interested, check out [Flux Standard Action](https://github.com/acdlite/flux-standard-action) for recommendations on how actions should be constructed.
Other than `type`, the structure of an action object is really up to you. If you’re interested, check out [Flux Standard Action](https://github.com/acdlite/flux-standard-action) for recommendations on how actions could be constructed.

We’ll add one more action type to describe a user ticking off a todo as completed. We refer to a particular todo by `index` because we store them in an array. In a real app it is wiser to generate a unique ID every time something new is created.

Expand Down

0 comments on commit 433f657

Please sign in to comment.