Run
Auto Run
define('my-app', class extends WeElement { alertShow = false confirmShow = false onClose = (e) => { this.confirmShow = false this.alertShow = false this.update() } onConfirm = (e) => { this.confirmShow = false this.alertShow = false this.update() } showAlert = (e) => { this.alertShow = true this.update() } showConfirm = (e) => { this.confirmShow = true this.update() } render(props, data) { return (
Show Alert
Show Confirm
) } }) render(
, 'body')