Skip to content

Unable to use JSX directly in setup() #64

Closed
@u3u

Description

@u3u

The createElement function has been added to the v2.2.0 release, which is great! 🎉

But the babel-sugar-inject-h plugin attempts to automatically inject h from this.$createElement, but there is no this in setup(), so JSX cannot be used directly.

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