JSFiddle - React, Tailwind, and code Playground

by ChangJoo Park

HTML

<div id="app">
  <input type="text" v-model="message">
  {{messageWithTime}}
  <hr>
  {{hello}}
  
  <input type="text" v-model="hello">
</div>

JavaScript

new Vue({
	el: '#app',
  data: function () {
  	return {
    	message: ''
    }
  },
  computed: {
  	messageWithTime: function () {
    	console.log('message with time event fired!!')
    	return this.message + new Date()
    },
    hello: function () {
    	return 'hello'
		}
	}
})