The query reference Expression

Syntax

`</>'

Description

The query reference expression allows you to embed arbitary CSS selectors in hyperscript. It will evaluate to all matching elements.

Examples

<div _="on click add .clicked to <button/>">
  Add .clicked to all buttons
</div>

<div _="on click add .clicked to <button:not(.clicked)/>">
  Add .clicked to all buttons that don't have 
  .clicked on it already...
</div>