1、Warning: getDefaultProps was defined on GraphComponent, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.
解决方法:如果是extend 方式创建的组件,不可以用getDefaultProps设置默认的props值,放在GraphComponent.defaultProps = {}中
2、antd.js?8caacf68699ef4b8bd32:72 Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>
解决方法:将div中的p标签替换成div就可以
3、antd.js?8caacf68699ef4b8bd32:72 Warning: Received `true` for a non-boolean attribute `collapsible`.
解决方法:collapsible 修改为collapsible={“true”}
4、antd.js?8caacf68699ef4b8bd32:72 Warning: Received `false` for a non-boolean attribute `className`.
If you want to write it to the DOM, pass a string instead: className="false" or className={value.toString()}.
If you used to conditionally omit it with className={condition && value}, pass className={condition ? value : undefined} instead.
解决方法:xxx && styles.dots 修改为xxx ? styles.dots : undefined