I am currently working with a variable rules that contains an object used for validating a form. After doing some research by reading blogs and watching tutorials, I have come to understand that ref is typically used for primitive values, while reactive is better suited for objects and arrays.
Now, my question is whether it is necessary to use reactive when the object in question is static?
What is considered the best practice in this scenario?
const rules = reactive({
name: [
{
required: true,
message: "Name is required"
trigger: "blur"
}
],
age: [
{
required: true,
message: "Age is required",
trigger: "blur"
}
],
email: [
{
required: true,
message: "Email is required",
trigger: "blur"
}
]
});