1.0.8 • Published 10 months ago

kwikjs v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

kwik

Component library that requires no build tools, It can be used directly in the browser. It is leveraging the Web Components.

import { globalCount } from "./app.js";

const TestItem = new Kwik.Blueprint(({ node, events }) => {
  const t = Kwik.createSignal(0);

  const clickHandler = (e) => {
    t.value += 1;

    globalCount.value += 1;

    console.log(`item is clicked ${t}`);
  };

  return () => /*html */ `
    <button ${events({ click: clickHandler })} >
      Test
      ${node(t)}

    </button>
  `;
});

export default TestItem;
1.0.8

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago