0.1.0 • Published 5 years ago
qs2el v0.1.0
qs2el
Create an element from a query selector string.
// as function
const a = qs2el('a#home.special[data-page=home]');
// or as literal
const button = qs2el`button${'.primary'}[disabled]`;
Create an element from a query selector string.
// as function
const a = qs2el('a#home.special[data-page=home]');
// or as literal
const button = qs2el`button${'.primary'}[disabled]`;