React 高阶组件通过 ref 获取实例 暴躁的小胖 2019-05-05 1,587 阅读1分钟 <HocComponent ref={(ref) => { this.searchPage = ref; }} wrappedComponentRef={(ref) => { this.searchPageRef = ref; }} /> ref 获取高阶组件实例 wrappedComponent本身传递的实例