How to use the apprun.Component function in apprun

To help you get started, we’ve selected a few apprun 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 / apprun-v1.8.3-keyed / src / main.tsx View on Github external
e.preventDefault();
        startMeasure('remove');
        component.run('remove', getId(t));
        stopMeasure();
    } else if (t.matches('.lbl')) {
        e.preventDefault();
        startMeasure('select');
        component.run('select', getId(t));
        stopMeasure();
    }
});

app.on('//', _ => { })
app.on('#', _ => { })

let component = new Component(store, view, update);
component.start(document.getElementById('main'));
github krausest / js-framework-benchmark / frameworks / non-keyed / apprun / src / main.tsx View on Github external
e.preventDefault();
        startMeasure('remove');
        component.run('remove', getId(t));
        stopMeasure();
    } else if (t.matches('.lbl')) {
        e.preventDefault();
        startMeasure('select');
        component.run('select', getId(t));
        stopMeasure();
    }
});

app.on('//', _ => { })
app.on('#', _ => { })

let component = new Component(store, view, update);
component.start(document.getElementById('main'));

apprun

JavaScript library that has Elm inspired architecture, event pub-sub and components

MIT
Latest version published 2 months ago

Package Health Score

68 / 100
Full package analysis