[Vuejs]-Vue3 v-for columns…rows get duplicated

1đź‘Ť

The problem is that you run the v-for in the div and it must be in the component. Try this.

  <div class="row">
    <Column 
      v-for="(column, index) in columns" 
      :key="index"
      :columnName="column.name" 
      :columnColor="column.color" />
  </div>

Leave a comment