高阶组件 wrappedComponentRef 获取组件的引用

高阶组件 wrappedComponentRef 获取组件的引用 class abc extends Component { constructor(props) { super(props); this.state = { // state设置一个id id: '' }; } componentDidMount() { // 父组件获取子组件的一个方法 th
相关文章
相关标签/搜索