JSFiddle - React, Tailwind, and code Playground
by Yerko Palma
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.21/vue.js"></script>
<div id="app"></div>
JavaScript
(function () {
function install (Vue) {
Vue.mixin({
created: function () {
console.log('Hello World')
}
})
}
if (typeof exports == "object") {
module.exports = install
} else if (typeof define == "function" && define.amd) {
define([], function(){ return install })
} else if (window.Vue) {
Vue.use(install)
}
}())
new Vue({
el: '#app'
})