Advanced
Special properties
Property
Type
Effect
render
import { h, render } from "atomico";
render(
h("host",{ style: {background:"red"} }
h("h1",null,"Text content...")
),
document.querySelector("#app")
);import { h, render } from "atomico";
render(
<host style={{background:"red"}}>
<h1>Text content...</h1>
</host>,
document.querySelector("#app")
);import { html, render } from "atomico";
render(
html`<host style=${background:"red"}>
<h1>Text content...</h1>
</host>`,
document.querySelector("#app")
);Constructor with custom element
Constructor with DOM
Dynamic constructor
staticNode
cloneNode
SSR hydration
Last updated
Was this helpful?
