From a14b3fc2273607a8f06aa43da666f70a7e0d2dd5 Mon Sep 17 00:00:00 2001 From: Anika Tabassum <1936040+atabas@users.noreply.github.com> Date: Sat, 27 Oct 2018 07:15:52 -0400 Subject: [PATCH] Clarify+make the reducer description more concise (#20060) --- guide/english/redux/redux-reducers/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/redux/redux-reducers/index.md b/guide/english/redux/redux-reducers/index.md index b068155e2c..dbdaad3cab 100644 --- a/guide/english/redux/redux-reducers/index.md +++ b/guide/english/redux/redux-reducers/index.md @@ -3,7 +3,7 @@ title: Redux Reducers --- ## Redux Reducers -Redux reducers allow you to make changes to your state in your application. Actions in redux only tell the application what basically happened. Whether it was a click event that took place or some mouse scroll it will just tell that this thing happened. Now how do you go about changing the state of your application which lives inside the store well you do that by using a reducer. +Redux reducers allow you to make changes to your state in your application. While Redux actions inform the application about events that happened (eg click/scroll events), Redux reducers allow you to change the state of the application. Now a reducer in redux needs to be a pure function. A pure function is a type of function that does not have additional side-effects. You pass it some arguments and it returns the expected result. For example: