@pluginarch/create-parch
Version:
this is way to create a ui project
15 lines (14 loc) • 432 B
JavaScript
const HTMLElement = globalThis.HTMLElement || class {};
const customElements = globalThis.customElements || class {
static define=(a,b)=>{}
};
class App extends BaseElement {
constructor() {
super();
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = '<p>Hello, Welcome App!</p>';
}
connectedCallback() {
console.log('AppElement is connected to the DOM');
}
}