使用props自定义onRef属性

父组件里:
this.Requirements.handleSubmit(); 调用子组件的handleSubmit方法
image.png
子组件里:
把子组件实例传递给父组件
image.png