bind()
bind(root?: ParentNode): void
Delegates every data-cuelume-* interaction under root, which defaults to the whole document. Call it once at startup.
It is idempotent, so calling it again is harmless, and it handles elements added later, so you do not need to re-bind after a render.
import { bind } from "cuelume";
bind(); // the whole document
bind(document.querySelector("#app")); // or one subtree