3 ms·
It looks like the Element.update function is more or less the equivalent of setState in React. So the UI does seem to be declarative (you may want to emphasize
by lopatin 8y ago
It looks like the Element.update function is more or less the equivalent of setState in React. So the UI does seem to be declarative (you may want to emphasize this, at first it looked like a jQuery-like library). How does the declarative aspect of this work without a virtual dom?
- lopatin 8y agoAnswering my own question here: It's not the equivalent of setState as it doesn't set in memory state, but edits the dom directly when called.