VirtualDom with webcomponents.
NPM
npm install
Dev Server
npm start
Generate Prod build
npm run build
class MyComponent extends QuantumElement {
componentBeforeLoaded?() { }
componentMounted?() { }
componentLoaded?() { }
componentBeforeUpdate?() { }
componentAfterUpdate?() { }
componentUnmounted?() { }
componentAttributeChange?(name: string, oldVal: any, newVal: any) { }
componentPropChange?(name: string, oldVal: any, newVal: any) {}
styles(): string { return `
:host {
display: block;
}
div {
color: #111;
}
`; }
template(): any {
return <div>{this.props.count}</div>
}
constructor() {
super({ count: 0});
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.