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

1.0.8 • Public • Published

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;

Package Sidebar

Install

npm i kwikjs

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

292 kB

Total Files

40

Last publish

Collaborators

  • cedrickcampoto