omi/packages/omi-tap
dntzhang a1fea57e58 update version num 2018-10-28 21:55:48 +08:00
..
README.md tab to 2 space 2018-10-25 21:30:18 +08:00
index.js update version num 2018-10-28 21:55:48 +08:00
package.json update version num 2018-10-28 21:55:48 +08:00

README.md

omi-tap

Support tap event in your Omi project.


Install

npm install omi-tap

Usage

import { render, WeElement, tag } from "omi"
import "omi-tap"

@tag("my-app")
class MyApp extends WeElement {
  onTap = () => {
    console.log('tap')
  }

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

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

License

This content is released under the MIT License.