R/attributes.R
x_effect.Rd
Run a script when a reactive dependency changes.
x_effect(code)
JavaScript code.
https://alpinejs.dev/directives/effect