Introduction
We use ref to create reactive data that Vue can track and update the UI automatically when it changes.
When you want to store a simple reactive value like a number or string.
When you need to update the UI automatically after changing a variable.
When you want to keep track of a value that changes over time, like a counter.
When you want to share reactive data inside a component using the Composition API.
When you want to create reactive references to DOM elements.