从React.Component扩展时,VS代码会警告“ super(props);”

时间:2020-09-11 21:59:00

标签: javascript reactjs

我的vscode在super(props)上发出警告, 有人知道为什么吗?

enter image description here

class TableSizeInput extends React.Component {
  constructor(props) {
    super(props);
      this.state = {
      default_columns: this.props.default_columns,
      default_rows: this.props.default_rows
    };
  };

谢谢!

0 个答案:

没有答案
相关问题