3 ms·
Looking at the latest trends of GUI frameworks, decoupling the layout from the data gives much cleaner code. Let the framework take care of all the data bindin
by Too 3y ago
Looking at the latest trends of GUI frameworks, decoupling the layout from the data gives much cleaner code. Let the framework take care of all the data binding for you. Both web and desktop go more and more in this direction. Nobody does
That means, avoid mutating widgets directly. Instead bind their properties to some data store that rerenders automatically on change. The input/output example on their page demonstrates something like this.
Nobody does getElementById() any more.