4 ms·
you can get all these benefits by pre-rendering and hydrating using a system like react-snap. this means static rendered html is served and the react control is
by zemnmez 7y ago
you can get all these benefits by pre-rendering and hydrating using a system like react-snap. this means static rendered html is served and the react control is then re-added, or ‘hydrated’ into the DOM content
- gboss 7y agoDepending on how "hydration" is done it can still waste cpu cycles and hurt time to interactive on mobile devices.
- bryanrasmussen 7y agoare you sure you can get all these benefits? - You can separate it out from the rest of your SPA bundle(s), so shipping changes is completely decoupled from your SPA CI/CD process and can be done as frequently as you like and very quickly I mean sure I guess I could do a lot of extra work to separate it out, it's true. But the real benefit of a vanillajs landing page is stuff is simple, and getting all the benefits by pre-rendering and hydrating using a system like react-snap sounds difficult. If we follow the old saying Simple things (to say) should be simple (to do) it implies to me that Difficult things to say will be (relatively) difficult to do.
- zemnmez 7y agosure, you can't separate it out if it didn't need to be separated in the first place