Skip to content

v4.0.24

Compare
Choose a tag to compare
@dntzhang dntzhang released this 08 Nov 05:36
· 438 commits to master since this release
  • [Add] native tap event support
import { render, WeElement, define } from "omi"

define("my-app", class extends WeElement {
  onTap = () => {
    console.log('tap')
  }

  render() {
    return (
      <div onTap={this.onTap}>Tap Me!</div>
    )
  }
})

render(<my-app />, "body");