JSFiddle - React, Tailwind, and code Playground

HTML

<div id="app">
  <button @click="n++" :disabled="n >= array.length - 1">+</button>
  <p>{{array[n]}}</p>
</div>

JavaScript

new Vue({
	el:'#app',
  data(){
  	return {
    	n:0,
      array:['one','two','three','four','five']
    }
  }
})