top | item 44278409

(no title)

acemarke | 8 months ago

It's ironic you say that - I wrote the post, and I _maintain_ Redux :)

FWIW, I can confirm that hooks have _not_ "eradicated Redux" - it's still the most widely used client side state management lib in React apps. It's definitely as common as it used to be, since the ecosystem has evolved significantly, but both download stats and discussions with devs tell me it's still in very widespread use.

discuss

order

almosthere|8 months ago

We can have different opinions, but every project that had Redux in the wild that I ran into had side effects and unexpected behavior everywhere. With hooks (state and context) it completely removes the need for Redux anywhere and most libraries are best kept clean without requiring anyone to use Redux.

To me Redux is like arguing to use C with global variables. Hooks (usestate/usecontext mostly) are local variables and it makes much more sense.