Our great sponsors
In case you are open for a new State Manager.. AgileTs provides a simple class called 'Collection' which helps us to keep track of a reactive Objects Array. https://agile-ts.org/docs/core/collection
Helping you select an MV* framework - Todo apps for React.js, Ember.js, Angular, and many more
If you look at the todomvc example for vanilla react, the way they're handling this shared state between parent component and children is through an external "TodoModel" which re-renders the whole component tree on every change. Granted it's a bit outdated, but it's the closest public showcase solution I could find (TodoMVC is to compare how different frameworks aproach the exact same problem)
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
👻 Primitive and flexible state management for React
However if you don't care for testing (which you should) or Storybook, then you might find something like Jotai (Recoil alternative) to help you, where you'd have an atom for the ingredient list and then derived atoms for each ingredient, but I'll be honest and say I don't have much experience with the library. I just think something like Redux would way overcomplicate it compared to sticking with React's state model. I'd rather use something like Constate then that's a small helper to make contexts with hooks.
Zustand = 🔥
5 projects | /r/reactjs | 20 Mar 2023
State management, possible alternatives to redux
5 projects | /r/reactjs | 12 Feb 2023
Any possibility that the React team makes a single instance hook?
2 projects | /r/reactjs | 27 Sep 2022
Why is it so difficult to modify a deeply nested state in React?
6 projects | /r/reactjs | 29 Jun 2021
Building an Account switcher with NextJS and Next Auth
5 projects | dev.to | 3 Jun 2023