How to use the hyperhtml/esm.wire function in hyperhtml

To help you get started, weโ€™ve selected a few hyperhtml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github krausest / js-framework-benchmark / hyperhtml-v2.4.0-keyed / src / index.js View on Github external
function createRow(state) {
  const row = {
    render: wire(),
    class(selected) {
      return state.id === selected ? 'danger' : '';
    },
    onremove() {
      remove(state.id);
    },
    onselect() {
      select(state.id);
    }
  };
  rows.set(state, row);
  return row;
}

hyperhtml

A Fast & Light Virtual DOM Alternative

ISC
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis