Skip to content

ts: 'Button' cannot be used as a JSX component. #331

@Sloth9527

Description

@Sloth9527

Do you want to request a feature or report a bug (建议还是bug) ?

Bug

What is the current behavior? (现有状况)

'Button' cannot be used as a JSX component.
  Its instance type 'Button' is not a valid JSX element.
    Type 'Button' is missing the following properties from type 'ElementClass': context, setState, forceUpdate, props, and 2 more.

What is the expected behavior? (应有状况)

'Button' should be used as a JSX component.

Which versions of React-weui, weui, and which OS and device are affected by this issue? (React-weui版本 weui版本 机型和系统)

  • "react-weui": "^1.2.3",
  • "weui": "1.1.0",
  • "@types/react-weui": "^1.0.0",

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