system-apps/apps/demo/index.js
2024-10-20 02:25:09 +08:00

16 lines
298 B
JavaScript

import * as lit from 'https://cdn.jsdelivr.net/npm/lit-html@3.2.1/+esm';
export const render = (ctx) => {
//
const demo = lit.html`
<div>
<h1>Demo</h1>
</div>
`;
lit.render(demo, ctx.renderRoot || ctx.root);
};
export const unmount = (ctx) => {
console.log('unMount');
};