react-component / form

React High Order Form Component(web & react-native)
http://react-component.github.io/form/
MIT License
1.81k stars 295 forks source link

createForm 没有转发 包裹组件的 ref #532

Open Yangfan2016 opened 2 years ago

Yangfan2016 commented 2 years ago

createForm 没有转发 包裹组件的 ref

如下代码


class Cp{

}
export const CpWithForm = createForm()(Cp);

<CpWithForm ref={this.cpRef}/>
// this.cpRef.current === null