JSFiddle - React, Tailwind, and code Playground

by leopoldthecuber

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.0-rc.4/vue.js"></script>
<div id="app"></div>

JavaScript

var App = Vue.extend();

new App({
  el: '#app',
  data() {
    return {
      b: 1
    }
  },
  methods: {
    aa() {
      this.a++
    },
    bb() {
    this.b++
    }
  },
  computed: {
    a() {
      return this.b + 1
    }
  },
  template: `
    <div>
      {{a}} {{b}}
      <button @click="aa">a + 1</button>
      <button @click="bb">b + 1</button>
    </div>
  `
})