SSR 🎉
Example
import "atomico/ssr";
import { html } from "atomico";
import "./components";
const dom = html`<my-component>
<h1>SSR</h1>
</my-component>` ;
dom.render() // serialized html
Observations
- The support is distributed as a module, so the environment of use requires ESM module support.
- To hydrate the shadow DOM it is required that the browser support
template[shadowroot=open]
.
- This support is early but is still being developed as part of the CORE, for alignment with the next Atomico versions.