In react best practice is Data flow from parent to child, event\'s will be passed from child to parent.
In this UI we have a parent component which contains 2