征战风云 发表于 2016-11-18 17:06:55

默认属性

getDefaultProps was defined on CommonCell ,a plain Jacascript class this is only supported for classes created using React


使用默认属性时的警告

少言 发表于 2016-11-18 17:10:20

static defaultProps = {}
或者 组件名称.defaultProps = {};

610880568 发表于 2017-10-10 00:38:08

fadfadasdfas回复dfasdfa

610880568 发表于 2017-12-15 14:12:18

回复回复回复回复
页: [1]
查看完整版本: 默认属性