import { Button } from 'react-weui';
import 'weui';
import 'react-weui/build/packages/react-weui.css';
class App extends React.Component {
public render() {
return (
\<div>\<Button>AAA\<\/Button> \</div>
); }}
Error:
[ts] JSX element type 'Button' is not a constructor function for JSX elements.
Property 'setState' is missing in type 'Button'.
[ts] JSX element class does not support attributes because it does not have a 'props' property.
any help?? thx -_-