MobX
Bacon
Our great sponsors
MobX | Bacon | |
---|---|---|
44 | 5 | |
27,176 | 6,460 | |
0.5% | 0.1% | |
8.0 | 1.8 | |
17 days ago | 10 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
MobX
-
Episode 24/13: Native Signals, Details on Angular/Wiz, Alan Agius on the Angular CLI
Similarly to Promises/A+, this effort focuses on aligning the JavaScript ecosystem. If this alignment is successful, then a standard could emerge, based on that experience. Several framework authors are collaborating here on a common model which could back their reactivity core. The current draft is based on design input from the authors/maintainers of Angular, Bubble, Ember, FAST, MobX, Preact, Qwik, RxJS, Solid, Starbeam, Svelte, Vue, Wiz, and moreβ¦
- 5 Alternatives to Redux for React State Management
-
Redux 101
MobX
-
React State Management in 2024
Mutable-based: leverages proxy to create mutable data sources which can be directly written to or reactively read from. Candidates in this group are MobX and Valtio.
-
Show HN: Cami.js β A No Build, Web Component Based Reactive Framework
Looks good! FWIW I always felt the observable pattern much more intuitive than the redux/reducer style. Something like https://mobx.js.org/
Things get hairy in both, but redux pattern feels so ridiculously ceremonially to effectively manage a huge global state object with a false sense of "purity".
Observables otoh say "fuck it, I'm mutating everything, do what you want with it".
-
State Management Alternatives: Best Tools for React Apps
MobX Documentation
-
React native for Linux app development in 2023
There's also others libraries like https://github.com/mobxjs/mobx which aren't specific to RN but can be used in any JS environment.
-
Is redux and thunks still used or are there other alternatives for it now?
Valtio is like simplified MobX
-
What is React State Management?
Link: https://mobx.js.org
-
A cure for React useState hell?
But I want to impress upon you that this is just only one of many patterns you can use this hook for. While this is subjective, I am personally not a huge fan of Redux and this type of pattern. It has its merits, but I think once you want to start layering in new patterns for actions, Mobx, Zustand, or XState are preferable in my personal opinion.
Bacon
-
Yes we are men. Men is what we are.
bacon.js
-
Static code generation DSL.
It would be awesome to develop something abstract and useful for usage as common PL (besides just solving specific problem), but it's really hard to develop a general purpose language (with memory management, mutations, etc.). For example, at my work I built reactive library mostly similar to Rx.js or Bacon.js, but with additional ability to compose different reactive systems on top of each other, so that streams declaration order won't matter and might be deployed separately while being glued at run-time (as long as stream names match). It's all cool, but system would only allow reactive functions (without imperativity and mutable objects), then the whole code would look really ugly and I definitely wouldn't be able to promote it among my colleges ^^, especially regarding how hard people migrate to new paradigms - sorry for complaining π.
-
Exploring reactive programming with Node.js
Reactor is based on the same reactive principles as Bacon.js and Knockout.js.
-
Node.js Packages and Resources
Bacon.js - Functional reactive programming.
-
Event Streams for Reactive Views
I remember hearing about Bacon.js one day and checking out their Getting Started page. In it, they demonstrate a counter using the Bacon event streaming library. This is the demo code:
What are some alternatives?
zustand - π» Bear necessities for state management in React
RxJS - A reactive programming library for JavaScript
kefir - A Reactive Programming library for JavaScript
Recoil - Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.
Cycle.js - A functional and reactive JavaScript framework for predictable code
riverpod - A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.
Highland - High-level streams library for Node.js and the browser
valtio - π Valtio makes proxy-state simple for React and Vanilla
Most.js - Ultra-high performance reactive programming
Cycle.js (react-native) - Cycle.js driver that uses React Native to render