And I find manual render very usefull and once you do it, you can have a global state as simple as a global object, no need to use useState anymore.
And I find manual render very usefull and once you do it, you can have a global state as simple as a global object, no need to use useState anymore.
In short, injecting a naive render function over the react virtual dom calculation is wildly inefficient.
If two unrelated components are consuming the same context, it will update when that context updates.
Using Zustand, there's virtually no overhead to this and it's extremely reactive
Well if you update a state, every children of your component is updated as well regardless of if they have a prop passed.
I know there are way to make react trully reactive like Valtio using proxy or maybe Zustand, but my point is that useState or useContext is not "reactive" at all, you must call a function to rerender the components.