v4.0.24
- [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");