Introducing
The Slant team built an AI & it’s awesome
Find the best product instantly
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now
4.7 star rating
0
Development
Frontend Development
Web
Javascript
What are the best JavaScript libraries for state management?
6
Options
Considered
23
User
Recs.
Oct 24, 2023
Last
Updated
Related Questions
Activity
Have feedback or ideas?
Join our community
on Discord
Ad
6
Options
Considered
Best JavaScript libraries for state management
Price
GZipped size
Repository
--
Vue.js
-
~30KB
https://github.com/vuejs/vue
--
RxJS
-
-
-
--
Redux
-
-
-
--
Webix
$0-$469
-
-
--
MobX
-
-
-
See Full List
--
Vue.js
My Rec
ommendation
for
Vue.js
My Recommendation for
Vue.js
All
4
Pros
3
Specs
Top
Pro
•••
Vuex
"Official Flux-Like implementation" - their own docs. They explain it better than I ever could, but I love separation of concerns, how modular it is and how everything can be shared and feed into each other without being concerned over how, where etc. https://vuejs.org/v2/guide/state-management.html#Official-Flux-Like-Implementation
See More
Specs
GZipped size:
~30KB
Repository:
https://github.com/vuejs/vue
Top
Pro
•••
Not React, Not Angular - but best bits of both.
See More
Top
Pro
•••
Coupled with Nuxt, it only gets better..
& more managable
See More
Hide
See All
Get it
here
Recommend
8
--
RxJS
My Rec
ommendation
for
RxJS
My Recommendation for
RxJS
All
3
Experiences
1
Pros
1
Cons
1
Top
Pro
•••
Extremely powerful
Both the simplest and the most complex UI logic mixing-and-matching events from mouse, triggers, web sockets, button clicks can be implemented just by combining a few operators. Dramatically reduced code size, reduced surface for bugs and amount ot unit tests required for full coverage.
See More
Top
Con
•••
Steep learning curve
It's not trivial to use, especially for developers who haven't done any functional-reactive programming before, but it's a worth investment (ChatGPT can help finding the right operators to use, as there are plenty). Don't just try it if you're in a rush, but certainly do learn it as a longer-term investment.
See More
PleasantPolyhymnia's Experience
RxJS is a general-purpose library for functional-reactive programming. State management just happens to be a natural fit due to its extremely powerful operators.
See More
Hide
See All
Get it
here
Recommend
5
--
Redux
My Rec
ommendation
for
Redux
My Recommendation for
Redux
All
10
Experiences
1
Pros
7
Cons
2
Top
Pro
•••
Borrows heavily from functional programming concepts
Redux's concepts are heavily influenced by functional programming languages. It is built on data immutability, and makes use of several functional programming features such as currying (usually seen in Redux middlewares).
See More
Top
Con
•••
Codebases can overuse it
Redux is great for state that's required in many disparate parts of the DOM, but frequently you see projects use it to hold all state, instead of just using props. It might be good if more could be done in the official docs to guide developers in when not to use it!
See More
David Newland's Experience
We love using Redux, but it's more like salt to us than water :) It's perfect for cross-cutting state that's required in many disparate parts of the DOM, so we only use it for that. There's too many projects that use it for ALL state!
See More
Top
Pro
•••
Supports server-rendering
Redux supports server-rendering.
See More
Top
Con
•••
Steep learning curve
Redux's pattern can be unintuitive and hard to grasp, especially if you have not worked with functional languages before.
See More
Top
Pro
•••
Extremely lightweight
At only 2kB it's an extremely lightweight library.
See More
Top
Pro
•••
Changes to state are made with pure functions
Reducers are pure functions that returns the next state based on the previous state and an action (describing what should be changed). Since they are pure functions, they return a new state object instead of modifying the existing state. This ensures that it doesn't affect anything outside of the function's scope, making it free from unintended side effects and also makes debugging easier.
See More
Top
Pro
•••
Lots of third-party resources online
Since it's such a popular library, there's plenty of tutorials, guides, or other third-party resources online.
See More
Top
Pro
•••
State is predictable
In Redux, the state of your application is held in a single object. The only way to change the state is to emit an action describing the change — there is no way to mutate state from the view, callbacks, or anywhere else. This makes the state of your application predictable and objective, and reduces the chances of any unintended state mutation by a callback somewhere else in your code.
See More
Top
Pro
•••
Can be used with many UI libraries/frameworks
Redux is most commonly used with React, but it can also be used with other UI libraries — Redux is strictly for state management only, thus it is agnostic to your front-end stack.
See More
Hide
See All
Get it
here
Recommend
3
--
Webix
My Rec
ommendation
for
Webix
My Recommendation for
Webix
All
8
Pros
8
Top
Pro
•••
Awesome responsive material skins
Great design and icons pack.
See More
Top
Pro
•••
Views can be constructed using JavaScript without HTML
The most common way of working with webix is to create a JSON configuration of your view in JavaScript. When you use TypeScript, you get complete typechecking and intellisense in your IDE.
See More
Top
Pro
•••
Webix Jet
The webix Jet library adds all the required features for SPA development (routing, template loading, ...)
See More
Top
Pro
•••
Great support from the webix team
The company behind webix is really quick in answering any questions you have on their forum or via email.
See More
Top
Pro
•••
Seems to be quite stable
Even the most complicated GUIs are bug-free most of the time.
See More
Top
Pro
•••
A lot of widgets
Webix is one of the most extensive UI component libraries, second only to Sencha ExtJS. Not only considering the number of widgets, but also the API methods for manipulating these widgets.
See More
Top
Pro
•••
Extremely simple to implement.
To get started is extremely simple. It has a low learning curve.
See More
Top
Pro
•••
Mature project
Regular updates and releases.
See More
Hide
See All
$0-$469
Recommend
1
--
MobX
My Rec
ommendation
for
MobX
My Recommendation for
MobX
All
1
Pros
1
Top
Pro
•••
Scales without boiler plate
Start with a direct mutation of state and move to action based state management when your application needs it.
See More
Hide
Get it
here
Recommend
4
--
dhtmlxSuite
My Rec
ommendation
for
dhtmlxSuite
My Recommendation for
dhtmlxSuite
Hide
Get it
here
Recommend
2
Don't see your favorite option? Add it.
Built By the Slant team
Find the best product instantly.
4.7 star rating
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now - it's free
One sec!
Are you sure that you want to abandon your hard work?
Delete Work
Continue working
{}
undefined
url next
price drop