Fix typo statment -> statement for redux tutorial (#27048)

pull/32824/head^2
Kien Nguyen 2019-01-16 05:18:26 +07:00 committed by Tom
parent 93e3f5abf2
commit 06dc16ca79
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ const authReducer = (state = defaultState, action) => {
};
```
By using a const for the Action Type, it won't matter if your string is mispelled because both the reducer's switch statment and the Action Type are referencing the same `const`. Using a `const` may also lead your code editor to suggesting the `const` as you are typing it, thus reducing the chance of mispelling the `const`.
By using a const for the Action Type, it won't matter if your string is mispelled because both the reducer's switch statement and the Action Type are referencing the same `const`. Using a `const` may also lead your code editor to suggesting the `const` as you are typing it, thus reducing the chance of mispelling the `const`.
The code shown below will work.