Event

  1. define('my-first-element', class extends WeElement {
  2. onClick = (evt) => {
  3. alert('Hello Omi!')
  4. }
  5. render() {
  6. return (
  7. <h1 onClick={this.onClick}>Hello, world!</h1>
  8. )
  9. }
  10. })