Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/basics/Reducers.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ function todoApp(state = initialState, action) {
Now let's handle `SET_VISIBILITY_FILTER`. All it needs to do is to change `visibilityFilter` on the state. Easy:

```js
import {
SET_VISIBILITY_FILTER,
VisibilityFilters
} from './actions'

...

function todoApp(state = initialState, action) {
switch (action.type) {
case SET_VISIBILITY_FILTER:
Expand Down