-
How do I call Vue events when I write tag code via JSX?
-
Home.vue
<script> export default { methods: {touchClick () {console.log(' hit ')}}, Render () {return (<div onClick={this.touchclick}> page content </div>)}} </script>Copy the code
-
The effect