You can no longer access this.props.ref and this.props.key from inside the Component instance itself. So you need to use a different name for those props.
react组件内部不能获取key
最新推荐文章于 2022-09-14 17:24:21 发布
You can no longer access this.props.ref and this.props.key from inside the Component instance itself. So you need to use a different name for those props.