8 lines
132 B
Plaintext

class {
handleCustomEvent(data) {
this.receivedData = data;
}
}
<custom-tag on-custom-event("handleCustomEvent")/>