[Vuejs]-Vue v-for and variable logic unclear

3👍

The MessageItem should be inside the <div> tag:

<div v-for="(message, index) in messages" :key="index">
    <MessageItem :message="message" />
</div>

Leave a comment