Uppercase the ES6 word (#23907)

This commit is contained in:
Qbuiba
2018-12-02 10:10:26 +07:00
committed by Manish Giri
parent 97f80c715c
commit 25fa070622

View File

@ -88,7 +88,8 @@ const actions = [
]
```
you can generate new state based on those list of actions. How would we do that? By using a reducer function, like so:
You can generate new state based on those list of actions. How would we do that? By using a reducer function, which takes in the current state and the action that was triggered and then returns a new state. Here we used the ES6 default parameter syntax to assign a default value to the state array, like so:
```javascript