JSFiddle - React, Tailwind, and code Playground

by Simon Herteby

HTML

<div id="vue">
  <table>
    <thead>
      <tr>
        <th v-for="field, i in errors[0]">{{i}}</th>
      </tr>
    </thead>
    <tr v-for="error in errors">
      <td v-for="field in error">
        {{field}}
      </td>
    </tr>
  </table>
</div>

Vue

new Vue({
	el:'#vue',
  data(){
  	return {
    	errors:[]
    }
  },
  created(){
  	addEventListener('error', (...args) => this.errors.push(args))
  }
})

setInterval(()=>{
	throw new Error('hej')
}, 1000)