Skip to content

Commit c12fb9e

Browse files
committed
We can't state this enough, let's have in the introduction as well
1 parent d2a6144 commit c12fb9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/introduction/ThreePrinciples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ store.dispatch({
4545

4646
**To specify how the state tree is transformed by actions, you write pure [reducers](../Glossary.md#reducer).**
4747

48-
Reducers are just pure functions that take the previous state and an action, and return the next state. You can start with a single reducer, but as your app grows, you can split it into smaller reducers that manage specific parts of the state tree. Because reducers are just functions, you can control the order in which they are called, pass additional data, or even make reusable reducers for common tasks such as pagination.
48+
Reducers are just pure functions that take the previous state and an action, and return the next state. Remember to return new state objects, instead of mutating the previous state. You can start with a single reducer, but as your app grows, you can split it into smaller reducers that manage specific parts of the state tree. Because reducers are just functions, you can control the order in which they are called, pass additional data, or even make reusable reducers for common tasks such as pagination.
4949

5050
```js
5151
function visibilityFilter(state = 'SHOW_ALL', action) {

0 commit comments

Comments
 (0)