1.0.1 • Published 3 years ago

@jswork/next-apply v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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.