import { attrSetter } from 'deleight/dom/components'
import { apply } from 'deleight/dom/apply'
document.body.innerHTML = `
<div>I am a div</div>
<p>I am a paragraph</p>
<section>I am a section <button>Btn1</button></section>
<article>I am an article <button>Btn2</button></article>
`;
const val = attrSetter('attr')
apply({ section: { button: val(20) }, article: { button: val(33) } });
Returns a component for setting single element attributes.
Pending tests. Please report bugs.