|
|
|
|
|
by benawad
2921 days ago
|
|
"Redux is notorious for its boilerplate and has a relatively difficult learning curve. We provided generators for some common templates but it was still one of the most challenging pieces and source of confusion while working with React Native." Interesting to see even Airbnb struggles with Redux |
|
I imagine their thought process went like this:
Types: People like strongly typed languages, maybe if we call our events "types", they will like Redux more?
Reducers: Switch statements are so boring and uncool. Lets call this "reducer" instead of "events switch statement".
Store: Lets call the state tree "store". The term "State tree" is too explicit and a core principle of Redux is misdirection.
Actions: Mere mortals will associate the term "action" with functions and procedures, but Redux is not for mortals. "Action" will be our term for payload.