Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.21 KB

README.md

File metadata and controls

74 lines (51 loc) · 1.21 KB

Quantum

VirtualDom with webcomponents.

Installation

NPM

npm install

Dev Server

npm start

Generate Prod build

npm run build

Demo

Here

Documentation

Example

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});
    }
}

Contributing

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.

License

MIT