How do you get data from another form or state ReactJS
-
There are two composite elements, their form 1 and form 2. Form 2 consists of inputs and rolling lists. The user completes these components and presses the button (in form 1) of data from Form 2. Now the question is, how do I get the data from another form? I tried to get through ReactDOM.findDOMNode. There's no point. Thank you.
-
As an option, a general repository can be made for both elements. Read FLUX. I like Baobab. But if, for your case, it's a gun shot, you can do something simple and yourself.
Another option is to place both forms in the parent ' s receiver ' s overall parent ' s component and to receive and transmit the status through the parent.