Vue uses jsx to render pages and how to bind custom events from components.

The click event can be bound using onClick= {this.click} in

jsx.
how to bind custom events.
onXXXEvent= {this.xxx} does not reflect

Mar.23,2021
Just add on- directly to the event name

event name, such as on-custom-event= {handler}


render() {
    return <div {...{on: {customEvent: handler}}}></div>
}

https://github.com/vuejs/babe.


https://github.com/vuejs/babe.

Menu