JSFiddle - React, Tailwind, and code Playground
by robert chang
HTML
<script src="//cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/vue/latest/vue.js"></script>
<div id="editor">
<child></child>
</div>
CSS
html, body {
margin: 0;
height: 100%;
font-family: 'Helvetica Neue', Arial, sans-serif;
color: #333;
}
Babel + JSX
Vue.component('child',{
props: ['aprop'],
data: function(){
return {
_mydata: 5
}
},
template: `<div>{{ aprop }}</div>`,
mounted(){
console.log(this._mydata)
}
})
new Vue({
el: '#editor',
data: {
}
})