redux
MobX
Our great sponsors
redux | MobX | |
---|---|---|
177 | 22 | |
58,085 | 25,257 | |
0.6% | 1.0% | |
8.9 | 8.5 | |
about 17 hours ago | 4 days ago | |
TypeScript | TypeScript | |
GNU General Public License v3.0 or later | 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.
redux
-
Surprising Performance Lessons from React Microfrontends in Production
Use of global state management libraries e.g. Redux, MobX and XState.
-
Trying to add items to a useState array, but it clears on refresh
Redux is likely overkill in this situation. For sharing global state, state management libraries are certainly the way to go, but ephemeral state should not go into a store: state that is only used within a single logical component is better off in useState or useReducer hooks.
-
Redux explained from a beginner perspective (simplified)
Let's start by explaining some of the Redux terminologies 1. What exactly is Redux When you visit the official Redux Website, you see this simple definition ==> Redux:
-
Learn how React Context API works by Building a Minimal Ecommerce Shopping App
React Context is a method used to pass data(and functions) from parent to child component(s), by storing the data in a store (similar to Redux), from where you can easily access and import the data into whatever components you choose.
-
Using Zustand in React applications
In this post we are going to look closely to one of the state management libraries - Zustand. This is a good alternative to Redux for development of React applications if you find Redux too complicated or too heavy for your current project.
-
Display a simple loading indicator between routes in react router
Reactjs I'm coming from AngularJS world and start some days ago writing my first React App with react-router, in AngularJS I do: app.directive('Loading', function($rootScope, $timeout) { return { restrict: 'E', replace: true, template: 'Loading' link: function(scope, element) { $rootScope.$on('$routeChangeStart', function(event, currentRoute, previousRoute) { element.removeClass('ng-hide'); }); $rootScope.$on('$routeChangeSuccess', function() { element.addClass('ng-hide'); }); } };}); and then I just add . So now in my React App I have: class App extends Component { render() { return ( Home About ); }} and my two components are simple: class Home extends Component { render() { return ( Home ); }}class About extends Component { render() { return ( About ); }} Can I do this without using reduxJS? Answer link : https://codehunter.cc/a/reactjs/display-a-simple-loading-indicator-between-routes-in-react-router
-
By Crayons and For Crayons
It is using Webpack for bundling, Redux and Immer for application state management.
-
InfoAbout.me
This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.
-
InSelfView
State Management: Redux _ a Predictable State Container for React.
-
The Complete Modern React Developer 2022
This will be a course for becoming a Complete Modern React Developer in 2022. The only three topics which are not covered in this course are Redux, GraphQL and React Native which could be covered in a future course. TypeScript is going to be the main programming language covered however if you already know JavaScript then you should find it quite easy to understand because the syntax is not that much different.
MobX
-
Just looked at MobX, and it looks fantastic. Any cons?
Before starting a new React project, I'm taking a look at the contemporary state managers of today. After being impressed with Zustand, I became even more impressed with how MobX evolved.
- Uma introdução ao Hilla
- Old question. What do people in the industry say? MobX or Redux ?
- How to access/pass a variable outside a class method?
-
Using vue hooks in react
When it comes to mutable state in react, the easiest thing to think of is mobx (as opposed to immutable redux), so the following will implement the above based on it hooks function.
- Show HN: SyncedStore CRDT – build multiplayer collaborative apps for React / Vue
-
React Native MobX QuickStart
Source code on the GitHub - react-native-mobx-tutorial I've also created video version on the YouTube MobX - https://mobx.js.org/
-
How to get better and easier state management with Redux Toolkit
Outside there are more solutions for state management like Zustand, MobX and Recoil to name a few, so even if you have experience (or not) with those tools I would love to hear your feedback and experiences with state management!
-
React: different types of state management
MobX, Valtio This state management solution wraps the store params in a proxy. So you deal with a proxy and not with the object directly. You perform some simple operation and magically behind the scene, the shared state changes.
-
The React roadmap for beginners you never knew you needed.
MobX
What are some alternatives?
zustand - 🐻 Bear necessities for state management in React
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.
RxJS - A reactive programming library for JavaScript
react-query - ⚛️ Hooks for fetching, caching and updating asynchronous data in React
valtio - 💊 Valtio makes proxy-state simple for React and Vanilla
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
SWR - React Hooks for Data Fetching
effector-react - Business logic with ease ☄️
riverpod - A simple way to access state while robust and testable.
swift-composable-architecture - A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.