Pages

Wednesday, June 06, 2018

Patterns without libraries: React without state managers (Redux, MobX, etc)

I've been trying to sell a client on minimizing libraries in React for a while, and have been suggesting different vanilla state management architectures in place of Redux or MobX.

Interesting, then, to come across this article today:

You Don’t Need Redux, MobX, RxJS, Cerebral:

I know what you’re thinking: Redux alternatives are a dime a dozen. But this isn’t yet another library. In fact, it’s not a library at all.

It’s just a simple pattern: Meiosis.

Why a Pattern?

Using a pattern instead of a library means that you have more freedom. You are not dependent on a library’s features, bugfixes, and release dates. You are not worried about backward compatibility, deprecation, upgrade migration paths, or project abandonment. You are never waiting for a missing feature.

Yes, please. I need to read up on what they're proposing. It sounds like it might skip some of the advantages of having a singleton state object, like Redux and some MobX implementation do, but this is good momentum.