January 2020
Intermediate to advanced
470 pages
11h 13m
English
With regard to the usage of the global state—both getting and setting it—the solution is well known. The key points to this are as follows:
This is the technique that Redux uses for its reducers. The signature for a reducer is (previousState, action) => newState, meaning that it takes a state and an action as parameters and returns a new state as the result. Most specifically, the reducer is not ...