<input id="male" name="sex" type="radio" value="муж" v-bind:checked="checked" @change="$emit('change', $event.target.value)" />
<input type="checkbox" name="unsubscribe" value="true" v-bind:checked="checked" @change="$emit('change', $event.target.checked)" />
Promises and useEffect(async () => ...) are not supported, but you can call an async function inside an effect.. That's why using async directly in the useEffect function isn't allowed. Let's implement a workaround for it, by using the async function inside the effect.