JSFiddle - React, Tailwind, and code Playground

by ChangJoo Park

HTML

<div id="app">
  <child></child>
</div>

<template id="child">
  <input type="text" @input="updateInput" v-model="text">
</template>

JavaScript

var CHILD = {
	template: '#child',
  data: function () {
  	return {
			text: ''
    }
  },
  methods: {
  	updateInput: function () {
    	console.log(arguments)
    }
  }
}

new Vue ({
	el: '#app',
  components: {
  	'child': CHILD
  }
})