logoalt Hacker News

jakelazarofftoday at 9:56 AM1 replyview on HN

> The only potential issue with immediate mode is performance, since we need to re-render the entire UI on every state change.

Notice that in the task list example, if you leave some text in the input and check off a task, your text will be erased.

If we could truly treat the DOM as an immediate-mode UI, there would be no need for React/Preact/ Svelte/Solid/etc. But it turns out there are a fair number of quirks like this that preclude such simple replacements from working correctly.

(That said: I am all for experiments like this for learning, or for fun, or to try out unexplored framework design space!)


Replies

draw_downtoday at 11:17 AM

[dead]