4 ms·
What do people use instead of Redux these days?
by weavie 6y ago
What do people use instead of Redux these days?
- halfmatthalfcat 6y agouseReducer hook, MobX
- platz 6y agomy impression is, if you going choose a paradigm like MobX, you might as well use Angular, which is conceptually pretty similar, just with different opinions on library vs framework.
- acemarke 6y agoThat's the first time I've ever heard anyone say that "MobX and React are conceptually similar". MobX is technically based on an "observable" paradigm, but it's a completely different API and mental approach than RxJS is. Also, while MobX is commonly used with React, it's really a UI-agnostic state management library (same as Redux). I really wouldn't compare MobX and Angular at all. To me they look like completely different tools.
- nsonha 6y agono, you are making an argument that is React must be used a certain way (that is incompatible with MobX). I'm not sure what makes you think you're someone who can make gatekeeping statements like that if the react team never said such thing. MobX adds reactivity to your object oriented domain code and React allows you to write functional view component, what's wrong with that? And no using MobX and using Angular are 2 vastly different things. One can like MVVM (MobX) and dislike string template and other convoluted mechanisms Angular.
- onion2k 6y agoThe Mobx, Mobx-state-tree, and Mobx-keystone family are great if you want lots of features. Zustand is very good if you want something smaller.
- jjordan 6y agoPlenty of us still use Redux. It works well.
- chrisco255 6y agoApollo is very common for GraphQL based APIs.
- valand 6y agoUnstated (https://github.com/jamiebuilds/unstated https://github.com/jamiebuilds/unstated)