Remix.run Logo
simonw a year ago

That looks like it replaces the entire document every time state changes. How's the performance of that?

WickyNilliams a year ago | parent [-]

Even if performance is fine, the big usability issue is that it will blow away focus, cursor position etc every render. Gets very painful for keyboard use, and of course is a fatal accessibility flaw

efortis a year ago | parent [-]

yes, that’s the downside, focus is lost on init()

WickyNilliams a year ago | parent [-]

Really wish the browser gave us better APIs for updating the DOM. Creation is extremely easy, but after that you either have to invent some reconciliation system or stick with imperative updates