form icon indicating copy to clipboard operation
form copied to clipboard

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

Open wanxue0804 opened this issue 6 years ago • 0 comments

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} /> })

wanxue0804 avatar Nov 21 '18 04:11 wanxue0804