写 react 记一次奇怪错误 ReferenceError: Must call super constructor in derived class before accessing 'this'
写react时有如下代码
export default class extends PureComponent {
constructor(props) {
super(props);
}
fetch = (props = this.props) => {
const {dispatch, id, form} = props;
// ...
};...
原创
2018-09-11 10:26:17 ·
3301 阅读 ·
1 评论