JSFiddle - React, Tailwind, and code Playground

by Simon Herteby

HTML

<div id="vue">
  <div v-for="item, n in items" @click="current = n">
    {{item.name}}
    <span v-if="n == current">
      Stuff
    </span>
  </div>
</div>

JavaScript

new Vue({
	el:'#vue',
  data(){
  	let items = []
    for(let i = 0; i < 20000; i++){
    	items.push({name:'Testing AB'})
    }
    return {
    	items,
      current:undefined
    }
  }
})