following some research across the web, i understand i should add index to the loop and then add it as a key.
how would you suggest creating a unique key for both td's in the following code:
<template v-for="lesson in lessons">
<td @click="sort(lesson.questions)" :key="lesson.lessonId">
questions
</td>
<td @click="sort(lesson.grade)" :key="lesson.lessonId">
grade
</td>
</template>
the only idea i had was to add index to the loop and then have the second index as follows:
:key="`${lesson.lessonId}+1`"
but that feels a bit odd and error prone, am i right?