Skip to content

reactive([1, 2, 3]) vs ref([]) #801

@Christopher-Hayes

Description

@Christopher-Hayes

I'm assuming it doesn't make a difference which is used because arrays are an object and both functions accept objects. But, is there a reason in the "Template Refs" documentation it uses one on one line and the the other on the next. Couldn't tell if that was done for a specific reason I didn't understand.

It's the bottom example of this page: https://v3.vuejs.org/guide/composition-api-template-refs.html#usage-inside-v-for

image

The exact lines in the source are below.

https://github.com/vuejs/docs-next/blame/238422bded68f1d0260b89c3f9c3833831cd8cdc/src/guide/composition-api-template-refs.md#L72:L73

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions