I have a rather simple problem and I\'m not sure how to solve it with React\'s one way data flow.
Say you have a link in the parent that shows a modal
In the mod
You could pass a callback as a prop to the child component:
// In the parent // In the modal × ...
Then when you click the close button on the child, it will call the function of the parent