How to pass child state back to container? I have a very simple application, but due to the fact that I broke them into smaller components, now I am looping, passing the state (form) back to my container. I can also call api in the child component, and then get it through the props container, but this does not clear, I want the "final event" to be placed in the container, and the container has a "main" state.
Is my first intention (make sure the "main" state is stored in the container) correct? If so, how to return the state from the child component back to the container? Suppose I do not use reduction.
https://codesandbox.io/s/8zrjjz3yjj
source
share