@beautiful-eyes/core
v1.0.8
Published
Beautiful Eyes runtime -- @Component, View, bootstrap, and reactive decorators.
Readme
@beautiful-eyes/core
The Beautiful Eyes runtime: @Component, View, bootstrap, and re-exports of @beautiful-eyes/reactiveclass (@State, @Effect, @Input).
Turns a compiled .template.be array into real DOM and a reactiveElements Map. No virtual DOM.
npm install @beautiful-eyes/coreimport { bootstrap, Component, ReactiveClass, State } from '@beautiful-eyes/core';
import template from './counter.template.be';
@Component({
selector: 'Counter',
useTemplate: template,
useStyleSheets: []
})
class Counter extends ReactiveClass {
@State() count = 0;
inc() { this.count++; }
}
bootstrap(document.getElementById('root')!, new Counter());Templates are compiled by @beautiful-eyes/template-compiler (webpack loader). Wire that loader for *.template.be in your bundler.
