JSFiddle - React, Tailwind, and code Playground

by Yerko Palma

HTML

<div id="app">
  {{ items | json }}
  <div id="ready">
  
  </div>
</div>

JavaScript

new Vue({
	el: "#app",
  ready:function(){
   console.log(this.items);
   // this return a [__ob__: Observer]
   this.items.forEach(function(x,y){
   		var old = document.getElementById('ready').innerText
   		document.getElementById('ready').innerText = old + '\n' + JSON.stringify(x)    
   });
 },
	data:function(){
    return {
      items:[
       {id:1,name:'John'},
       {id:2,name:'FooBz'}
      ]
    }
  }
})