1. What does v-model do and how does it work in Vue 2 vs Vue 3?
v-model creates two-way binding between a form control and component state. In Vue 2 it syncs with a value prop and input/change events. In Vue 3 on native inputs it still binds directly, but on custom components it maps to modelValue and the update:modelValue event by default.
<input v-model="name" placeholder="Your name" />