- “Configuring a Redux store is too complicated”
- “I have to add a lot of packages to get Redux to do anything useful”
- “Redux requires too much boilerplate code”
configureStore(): wraps createStore to provide simplified configuration options and good defaults. It can automatically combine your slice reducers, adds whatever Redux middleware you supply, includes redux-thunk by default, and enables use of the Redux DevTools Extension.
createSlice(): accepts an object of reducer functions, a slice name, and an initial state value, and automatically generates a slice reducer with corresponding action creators and action types.
MobX is a simple, scalable… state management solution.
The strategy to achieve that is simple: Make sure that everything that can be derived from the application state, will be derived. Automatically.
…wrapping the React component in autorun. This keeps the component in sync with the state. …The only MobX specific code in there is the observer wrapping. That is enough to make sure that each component individually re-renders when relevant data changes.
Redux is wide ranging and super helpful, and the toolkit can be a great asset when trying to keep track of state.
Redux Toolkit (RTK)
HookState
After reading about seemingly everything else, I’m curious what Ducks is.