Function reactive

  • Returns a reactive proxy of the object.

    The reactive conversion is "deep": it affects all nested properties. A reactive object also deeply unwraps any properties that are refs while maintaining reactivity.

    Type Parameters

    • T extends object

    Parameters

    • target: T

      The source object.

    Returns UnwrapNestedRefs<T>

    Example

    const obj = reactive({ count: 0 })