At first Redux looks very complex even when its API is very small. There are a few simple rules that you have to know to use Redux successfully:
reducerfunction can update state changes in a Redux
reducerfunction is triggered by an
Actionsis dispatched (called) from within your application.
actionis a service request to a service supplier (
reducer) with a request for change (what kind of change + explanatory data)
reducer) sends the request
actionbased on the
kind of requestto the service department (function)
explanatory data(data) and makes a copy of the current situation and scribbles the modifications to it.