Skip to content

Commit

Permalink
grammar check for part-2-app-structure.md (#4427)
Browse files Browse the repository at this point in the history
  • Loading branch information
LordMoMA authored Oct 28, 2022
1 parent 8ad0842 commit 4ebc2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/essentials/part-2-app-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ We said earlier that reducers must **always** follow some special rules:
- They are not allowed to modify the existing `state`. Instead, they must make _immutable updates_, by copying the existing `state` and making changes to the copied values.
- They must not do any asynchronous logic or other "side effects"

But why are these rules important? There's a few different reasons:
But why are these rules important? There are a few different reasons:

- One of the goals of Redux is to make your code predictable. When a function's output is only calculated from the input arguments, it's easier to understand how that code works, and to test it.
- On the other hand, if a function depends on variables outside itself, or behaves randomly, you never know what will happen when you run it.
Expand Down

0 comments on commit 4ebc2bc

Please sign in to comment.