Coding task · Vue.js course · Module 15: TypeScript & Nuxt

Practice: Template Ref with Type

Use ref<HTMLInputElement | null> to control an input.

Task

Define a template ref with the correct type and use it in onMounted.