From 25fa070622078efdd383e118bf2dd03cdaab3a8a Mon Sep 17 00:00:00 2001 From: Qbuiba <37890918+Qbuiba@users.noreply.github.com> Date: Sun, 2 Dec 2018 10:10:26 +0700 Subject: [PATCH] Uppercase the ES6 word (#23907) --- guide/english/redux/redux-reducers/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guide/english/redux/redux-reducers/index.md b/guide/english/redux/redux-reducers/index.md index 67bd4127334..01802221c41 100644 --- a/guide/english/redux/redux-reducers/index.md +++ b/guide/english/redux/redux-reducers/index.md @@ -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