@jswork/next-apply

1.0.1 • Public • Published

next-apply

Faster apply for next.

version license size download

installation

npm install -S @jswork/next-apply

usage

import '@jswork/next-apply';

function create2(tag, cls) {
  const el = document.createElement(tag);
  el.className = cls;
  el['data-cls'] = cls;
  el['data-tag'] = tag;
  return el;
}

nx.apply(create2, null, ['span','my-class1']);

resources

license

Code released under the MIT license.

/@jswork/next-apply/

    Package Sidebar

    Install

    npm i @jswork/next-apply

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.19 kB

    Total Files

    5

    Last publish

    Collaborators

    • afeiship