VirtualDOM
Atomico's virtualDOM is designed to enhance the use of webcomponents.
Syntax
JSX
import { c } from "atomico";
const MyComponent = c(() => {
const handlerClick = () => console.log("click!");
return (
<host shadowDom onclick={handlerClick}>
<h1>content</h1>
<slot></slot>
</host>
);
});
customElements.define("my-component", MyComponent);/**@jsx h*/
import { h } from "atomico";Return rule
Template
Event Association
Simple lists
Lists with keys
Node references
shadowDom property
Method association
Last updated
Was this helpful?
