Render cycle
Atomico optimizes the execution of your script by minimizing resources through the rendering control.
import { html } from "atomico";
import { expect } from "@esm-bundle/chai";
import { fixture } from "atomico/test-dom";
import { Component } from "./component.js";
describe("my test", () => {
it("my-component", async () => {
const componentInstance = fixture(html`<${Component}>
<span>content...</span>
</${Component}>`);
await componentInstance.updated; // fist render
componentInstance.myProp1 = 10;
componentInstance.myProp2 = 20;
componentInstance.myProp3 = 20;
await componentInstance.updated; // now we can observe the effects on the DOM from the previous updates
await componentInstance.unmounted; // the component has been unmounted
});
});Webcomponent as function
SSR
Hydration
Optimization
Render optimization with static nodes
render optimization with renderOnce
Last updated
Was this helpful?
