<!-- 3 moznost pres watch -->
<template>
  <input v-model="internalValue" />
</template>

<script>
export default {
  name: 'Formik',
  props: ['value'],
  data() {
    return {
      internalValue: this.value
    };
  },
  watch: {
    value(newValue) {
      this.internalValue = newValue;
    },
    internalValue(newInternalValue) {
      this.$emit('update:value', newInternalValue);
    }
  }
};
</script