Skip to content

SirReiva/quantum

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages