React 高阶组件经过 ref 获取实例

<HocComponent ref={(ref) => { this.searchPage = ref; }} wrappedComponentRef={(ref) => { this.searchPageRef = ref; }} /> 复制代码 ref 获取高阶组件实例 wrappedComponent自己传递的实例 转载于:http
相关文章
相关标签/搜索