JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div id="app">
  <input :type="type">
  
  <button @click="changeType">
    Change Type
  </button>
</div>

Babel + JSX

new Vue({
	el: '#app',
  data() {
    return {
      type: 'checkbox',
    }
  },
  methods: {
    changeType() {
      this.type = (this.type === 'checkbox') ? 'text' : 'checkbox';
    }
  }
})