None of the tools we use is ideal.

I think that the success of redux is in its simpliciy (regardless of what you’ve sarcastically mentioned), timing and PR — when it was released there was vacuum in simple state management tools.

The example of shopping cart is artificial— if you know it would be few shopping carts, just enumerate their state.

Take a look at redux-ui lib — it solves the problem of encapsulation you have mentioned and is very similar to what you’ve done.

Don’t be fooled by the critics — it is a great read and breakdown of redux cons!

--

--

I like coffee, web development and simple code. https://agoldis.dev

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrew Goldis

Andrew Goldis

I like coffee, web development and simple code. https://agoldis.dev

More from Medium

My secret to doing it all

The A Train

Generalized Anxiety Disorder | Symptoms, Signs and treatment

Why I love Zion