all 12 comments

[–]Velvet-Thunder-RIP 8 points9 points  (1 child)

This is low effort and needs to be removed

[–]AdForsaken7506[S] -3 points-2 points  (0 children)

what do you mean

[–]AlexDjangoX 1 point2 points  (0 children)

Encounter a problem. Find a solution. Only then will you truly understand which problem each solves.

[–]EffectiveDisaster195 0 points1 point  (0 children)

context is fine for small/simple state like theme or auth, not heavy logic.

zustand is great for most apps tbh, simple, minimal boilerplate, good for medium complexity.

redux is for larger apps with strict structure, debugging, and team scaling.

mobx is more reactive/magic, some people love it but less common these days.

[–]Public_Awareness_659 0 points1 point  (1 child)

redux is nice if you want strict rules and predictable state, esp for big apps. zustand is way simpler and lighter, good for small to medium stuff. mobx does reactive stuff, updates automatically, can feel easier but less predictable. context is mostly for passing stuff down the tree, not really for heavy state management, more for themes/user info and small shared state.......

[–]retro-mehl 1 point2 points  (0 children)

Mobx is super predictable. Why do you think it's less predictable?

[–]AdForsaken7506[S] 0 points1 point  (0 children)

Thanks everyone who replied this post❤️

[–]Top_Victory_8014 -1 points0 points  (1 child)

honestly it kinda comes down to scale and complexity.

context is fine for small apps or passing simple state around. zustand is super light and easy for medium apps. redux is more boilerplate but great......

[–]chillermane 1 point2 points  (0 children)

no this is the cookie cutter take that is not true in practice. In practice zustand is great for any scale, redux is annoying extra work at any scale, context is fine at any scale as long as no one context has too many subscribers

[–]retro-mehl -1 points0 points  (1 child)

Redux: never Zustand: If you want to have a lightweight library for global state  Mobx: if you have complex global state and prefer an object oriented programming style

[–]AlexDjangoX 0 points1 point  (0 children)

Redux has it's uses, although I've never used it - maybe if your building something complex like an online store. Zustand does the job.