3 ms·
couldn't agree more. React makes unidirectional data flow mainstream first time in the history. it's the important bit.
by wangii 11y ago
couldn't agree more. React makes unidirectional data flow mainstream first time in the history. it's the important bit.
- nostrademons 11y agoHTML forms? Win32? Curses/INT9? Unidirectional data flow has been mainstream at least as often as nests of observers and component state. Probably moreso, if you count the 20 years of computing where the only thing you could do was batch processing. What React does do is bring unidirectional data flow into the modern SPA web era. That's an accomplishment now, but it's important to put it in its proper place in history. Most of the history of programming had unidirectional data flow, it has its share of flaws as interfaces get more complex and interactive, and it's likely that at some point in the future people will move back towards multidirectional data flow.
- wangii 11y agoI should've pointed the context: GUI. Win32 is not unidirectional data flow. there is the API SetWindowLong to modify/update a component anywhere you like. It's used so widely everyone must've done it.
- kozak 11y agoReact has enough APIs to do ugly hacks too. That doesn't mean you should use them.