模数HTML
Web组件缺少模板引擎
import { html , render } from '@modulor-js/html' ;
customElements . define ( 'my-component' , class extends HTMLElement {
set props ( { first , second } ) {
render ( html `
< div> first: ${ first } </ div>
< div> second: ${ second } </ div>
` , this ) ;