Atomico
A micro library inspired by React Hooks, designed and optimized for the creation of webcomponents.
import { c } from "atomico"; // 2.5kB
const MyComponent = c(
({name})=><host shadowDom>Hello, {name}</host>,
{
props: { name: String }
}
);
customElements.define("my-component", c(component));import { c } from "atomico"; // 2.5kB
const MyComponent = c(
({name})=><host shadowDom>Hello, {name}</host>,
{
props: { name: String }
}
);
customElements.define("my-component", c(component));API
Props(Properties)VirtualDOMHooksTestingLast updated
Was this helpful?
