Question #125

Author: admin
tags: Vue  
<template>
  <div ref="elem">
    {{ text }}
  </div>
</template>

<script setup>
import { ref, nextTick } from 'vue';

const elem = ref();

const text = ref('Hi!');

nextTick(() => {
  elem.value.innerHTML = 'Bye!';
});
</script>
What text will be displayed in the browser?
Hi!
Bye!
Nothing. There will be an error.
Rate the difficulty of the question:
easyhard