Re:What's TypeScript compiling? Use a treemap to find out
by helloguillecl on Monday August 01, 2022 @12:41PM
(#32308705)
One thing is to have JS for client-side interactivity, and another thing is to generate the entire HTML using javascript by sending both the data and javascript bundles to the client.
Re:What's TypeScript compiling? Use a treemap to find out
by no_wizard on Monday August 01, 2022 @12:59PM
(#32308967)
Incremental rehydration techniques make this much much less of an issue (React 18 supports this now, IIRC, for instance). The tl;dr is that if you employ SSG or SSR you won't endup up with immediate re-hydrating once the client loads up, but only when something triggers the need for re-hydration, like a button click.
That to me seems like the sweet spot for highly interactive applications that are very stateful, however like I said previously, your mileage may vary.
I always tell people, "mileage may vary, there's no silver bullets in this industry". I think it holds true especially when talking about stuff like this.