|
|
|
|
|
by ninetyninenine
252 days ago
|
|
Yes but this doesn't solve the problem fully. because any component that uses that state management solution becomes coupled to that global state. So let's say I want to use such a component in context of a completely different "global" state, then I can't do that anymore. Global state only saves you from prop drilling where you have to insert props into every parent element above the relevant element. Believe it or not Jquery + html actually did the seperation of data flow and GUI much better than react. The question is, how do I get re-useable GUI widgets that are decoupled from state all together such that every widget on my SPA can be reused anywhere on different global contexts and even on different apps. React does NOT solve this problem. |
|