weui / react-weui

weui for react
https://weui.github.io/react-weui/docs/
2.85k stars 492 forks source link

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

Open Sloth9527 opened 3 years ago

Sloth9527 commented 3 years ago

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版本 机型和系统)

VivekBaldha0712 commented 1 year ago

I would like to work on this