Open wanxue0804 opened 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} /> })
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} /> })