2 ms·
Nothing in HTML is immediate mode. Any framework with a DOM is retained mode, by definition.
by inigyou 3mo ago
Nothing in HTML is immediate mode. Any framework with a DOM is retained mode, by definition.
- pedro_movai 3mo agoBut the api is trying to simulate immediate mode using DOM
- inigyou 3mo agoThat's called an "abomination". The advantage of immediate mode is not storing a DOM. If you write immediate-mode code but it stores a DOM anyway then it's the worst of both worlds.
- Warwolt 3mo agoHow would you do layouting without a tree structure in place? Not really sure what you're getting at here
- inigyou 3mo agoYou have discovered one advantage of retained-mode designs.
- sroerick 3mo agoIsn't that literally React? I find it so immeasurably funny that in his effort to simplify code and invent immediate mode UI, Casey Muratori accidentally invented React