react-component / form

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

How do I get all the subcomponent form values when I iterate through the form subcomponent #214

Open wanxue0804 opened 5 years ago

wanxue0804 commented 5 years ago

I have a form component that I'm iterating over based on the number of bannerArray, and now how do I get the form input value from the form above all the subcomponents through formRef

this.state.bannerArray.map((item, index) => { return <BannerCard wrappedComponentRef={(form) => this.formRef = form} key={index} zone={index} {...props} /> })