Warning: The <HeadTable /> component appears to be a function component that returns a class instance. Change HeadTable to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. HeadTable.prototype = React.Component.prototype
. Don't use an arrow function since it cannot be called with new
by React.
提示说的不要太清楚;你的代码写的不符合
react
的官方推荐,所以给你警告