JSFiddle - React, Tailwind, and code Playground
HTML
<div id="app">
<my-form v-for="n in range"></my-form>
<button type="button" v-on:click="addForm()">Add Form</button>
</div>
<script type="x-template" id="my-form">
<div>
<labe>Text</labe>
<input type="text">
</div>
</script>
JavaScript
Vue.component('my-form', {
template: '#my-form'
});
new Vue({
el: '#app',
data: {
range:0
},
methods: {
addForm: function() {
this.range += 1;
}
}
})