4 ms·
As far as I know, all major frontend frameworks can render to a static HTML document.
by k__ 6y ago
As far as I know, all major frontend frameworks can render to a static HTML document.
- skohan 6y agoHow would you do that? I guess through webpack?
- k__ 6y agohttps://nextjs.org/docs/advanced-features/static-html-export https://nextjs.org/docs/advanced-features/static-html-export
- jayphen 6y agoThis outputs static HTML that gets hydrated on the client (as opposed to server rendering the HTML and then hydrating it on the client), which I don’t think what was being asked. I think what the OP was asking was more along the lines of partial hydration (where only parts of the DOM are hydrated by React/other framework) or no hydration (no JavaScript is loaded at all). 11ty does the latter: https://www.11ty.dev https://www.11ty.dev The React team are working on partial hydration and announced it in December. Vercel did a write up on it here: https://vercel.com/blog/everything-about-react-server-components https://vercel.com/blog/everything-about-react-server-compon...