Select virtual-dom nodes using css selectors.
Selector matching is done using cssauron.
var select = require("vtree-select");
var h = require("virtual-hyperscript");
var vtree = h("div", [
h("span", "hello"),
h("strong", "world"),
]);
select("div strong")(vtree)
// -> <strong>world</strong> (VNode object)
Create a match function that takes a vtree and returns an array of nodes that match the selector.
Returns an array of matched nodes, or null
if no nodes match.
npm install http-route