📜  将 ref 传递给类组件反应 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:22.653000             🧑  作者: Mango

代码示例2
// Dumb:
export default props =>
    

// Smart:
class Parent extends Component {
    constructor(props) {
        super(props);
    }

    setRef(ref) {
        this.inputRef = ref;
    }

    render(){
        return 
    }
}