Original Question: Code to initialize the contents of the form How can I use options api grammar, which is the code below, as composition api grammar?
I'm using the following code in a form. How would I update it from Vue's Options API to the Composition API.
data: {
text: ""
},
methods:{
resetForm: function(e) {
e.preventDefault()
this.$data.text = ""
}
}