Query the DOM with selector engine fallback support
npm install query-component Query the DOM with selector engine fallback support. This abstraction
allows all other components that require dom querying to indirectly support
old browsers, without explicitly adding support for them.
$ component install component/query
Query selector against the document or el
and return a single match.
``js`
query('ul > li');
query('ul > li', articles);
Query selector against the document or el
and return all matches.
`js``
query.all('ul > li');
query.all('ul > li', articles);
Currently supported:
MIT