JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://unpkg.com/vue/dist/vue.js">
</script>
<input type="text" v-on:input="changeTitle">
<div id="hello">
<p>{{ test }}</p>
</div>
JavaScript
new Vue({
el: '#hello',
data: {
test: 'hello world'
},
method: {
changeTitle: function(event){
this.test = event.target.value;
}
}
});