我安装了React Flux。我收到以下错误:
TypeError: Class constructor AccessManagement cannot be invoked without 'new'
需要说明什么?这是我的课程。
class Reports extends React.Component {
constructor(props) {
super(props);
}
static getStores() {
return [ReportsStore];
}
static calculateState(prevState, props) {
const rep = ReportsStore.getState();
return {
isLoading: rep.isLoading,
reportRequests: rep.ReportRequests
};
}
render() {
return (<dvi></div>
);
}
componentDidMount() {
}
}
export default Container.create(Reports);
助焊剂版本为:"flux": "^3.1.3"
,
知道如何解决这个问题吗?