DEV Community

kstdx
kstdx

Posted on

A JavaScript framework with web component

https://github.com/kstdx/tml

Hey!
I've created a new JavaScript framework and I'd like to introduce you to it! It's called tml.

features

  1. Buildless.
    tml doesn’t need to build.
    This is because tml is based on Web Component API.

  2. Simple, Lightweight.
    The contents of framework are very simple, so tml is 3kb lightweight.

  3. No virtual dom.
    Some frameworks like React using virtual dom internally, but tml doesn’t. But tml is using shadow dom so the performance is super.

  4. Super easy syntax
    You can write counter code like this:

const App = (me) => {
    me.init({ count: 0 })
    return me.html`
        <button @click=${() => me.$count++}>count</button>
        <p>${me.$count}</p>
    `
}
Enter fullscreen mode Exit fullscreen mode

Great :D

You can get more examples in the GitHub Repository, so now try it!

Top comments (0)