problem description
the left and right modules are made up of many sub-components respectively. When you click on a sub-component on the left, the panel on the right shows different content (the content is made up of many sub-components)
[Q]: when the values in the various sub-components on the right change, how do you display the values of these changes in the corresponding sub-components on the left?
related codes
what result do you expect? What is the error message actually seen?
the subcomponents on the right are public. Click on the other components on the left, and the right part may refer to some common components, so when the values in the subcomponents on the right change, how do you display these values in one of the subcomponents on the left?
I think that I need to store the value in state, but this logic has not worked out all the time. React, is still a rookie. Please give me some advice and some ideas. Thank you in advance.