1.0.8 • Published 9 months ago

kwikjs v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
9 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

9 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago