38 ms·
Very neat -- seems like React for textarea
by brentvatne 11y ago
Very neat -- seems like React for textarea
- tajano 11y agoOr like Elixir for ContentEditable
- brentvatne 11y agoNot sure why so many downvotes -- they build an in-memory representation of the content of the contenteditable, intercept input events to update that representation, and use that to update the actual dom. Presumably they wouldn't just wipe out the entire contents each time either, so it's sending atomic create/update/delete commands to the dom.. So it's like React's vdom just for contenteditable.