2024-11-30 00:13:23 +08:00
2024-11-30 00:13:23 +08:00
2024-11-30 00:13:23 +08:00
2024-10-16 23:14:53 +08:00
2024-11-30 00:13:23 +08:00

Container

import { Container } from 'https://kevisual.xiongxiao.me/system/lib/container.js';
const data = [
  {
    id: 'base-root',
    code: {
      render: (ctx) => {
        const rootEl = ctx.renderRoot;
        const div = document.createElement('div');
        div.innerHTML = 'Hello World!';
        rootEl.appendChild(div);
      },
      unmount: (ctx) => {
        console.log('unmount');
      },
    },
  },
];
const container = new Container({
  root: 'root',
  data: data,
});
container.render('base-root');
Description
No description provided
Readme 77 KiB
Languages
TypeScript 96.5%
JavaScript 3%
CSS 0.5%