I am not an expert in react. My problem statement is that
- I have a main component which in turn renders multiple child components for specific functions
- Now, when I save the main component , I want to save information from child components also.
What is the correct way to deal with this?
- Using callbacks in child components that return state of child?
- redux store/ useContext hook? Something else?
Would be great to get some advice. Thanks in advance