Skip to content

Instantly share code, notes, and snippets.

@ShuvoHabib
Created October 27, 2018 08:38
Show Gist options
  • Save ShuvoHabib/411d7f582f0263b2040647172ef30224 to your computer and use it in GitHub Desktop.
Save ShuvoHabib/411d7f582f0263b2040647172ef30224 to your computer and use it in GitHub Desktop.
Vue JSX Counter APP
export default {
name: 'app',
data () {
return {
count: 0
}
},
methods: {
handleClick () {
this.count++
}
},
render (h) {
return (
<div>
<button on-click={this.handleClick}>
Increment
</button>
{this.count}
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment