tsf-web
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

TSF - TypeScript Web Framework

An lightweight web framework for TypeScript 🏄 1.8 kB (minified and gzipped),

Build Status

Documentation and Examples - https://stan-kondrat.github.io/tsf

const app = new TSF('#app');

class Main {
    public $template = `<button $onclick="this.plus()">Plus</button> {{ this.counter }}`;
    public counter = 0;
    
    plus() {
        this.counter++; // DOM will updated automatically
    }
}

const main = new Main();

app.run(main); // Render application root component

main.counter = 100; // DOM will updated automatically

Installing / Getting started

npm install tsf-web

Licensing

The TSF is open-sourced software licensed under the MIT.

Readme

Keywords

none

Package Sidebar

Install

npm i tsf-web

Weekly Downloads

2

Version

0.0.16

License

MIT

Last publish

Collaborators

  • stankondrat