What are reactive references (ref) in the Composition API, and when should you use them?

ref creates a reactive primitive value or object, making it mutable and tracked by Vue. Unlike reactive, which tracks objects, ref is commonly used for individual variables. Both are essential for the Composition API’s reactivity system.