|
|
|
|
|
by kbumsik
2545 days ago
|
|
Actually reactivity in GUI (maybe declarative GUI programming is a more accurate form?) is also "the old way" in the GUI development. I mean it is already done a decade ago, even before react. Try QML. The view is automatically updated when a signal is triggered or its state changes. You will notice that it is surprisingly simpler than React. React got so popular because React implemented it very nicely in the web browsers, not because it brought new concepts. |
|
When using C++, looks like you have to use things like QAbstractListModel https://qmlbook.github.io/ch16-qtcpp/qtcpp.html#a-simple-mod...
Even without C++, there are things like ListModel and ListElement https://qmlbook.github.io/ch07-modelview/modelview.html
This is a far cry from React where you just use language-native data structures directly (you only need to do mutations in specific ways).
As far as I can tell, you also can't just use native language constructs like functions/ifs/.map, etc. to compose the UI elements. Instead you have containers like Repeater.
It seems very different to me compared to React, like built around a significantly different philosophy.