| ▲ | jakelazaroff a day ago | |
> 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!) | ||
| ▲ | draw_down a day ago | parent [-] | |
[dead] | ||