weui / react-weui

weui for react

Home Page:https://weui.github.io/react-weui/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Sloth9527 opened this issue · comments

commented

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",

I would like to work on this