Skip to content

complate must warn if macro doesn't return anything #33

@tillsc

Description

@tillsc

A common mistake is forgetting the return like this

export default () => {
  <span></span>
}

This leads to strange errors.

The check must be applied here:

let element = createElement(macro, params);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions