|
|
|
|
|
by Rohansi
439 days ago
|
|
I think state management is the worst part of using React. All of the popular/highly recommended packages to manage state require you to write code in unconventional ways without really explaining the design decisions. Why use reducers? They're basically different (worse) syntax for mutable object method calls. |
|
You have your app state in an object/class, and components automatically rerender when the part of the store changes that they access during render.
It has a very light set of idiosyncrasies for what it gives you unlike, say, redux.