“How to call a function in child or sibling component” is a fairly frequently asked question in React world. This is how we’ve solved it.
The setup is this: we have a parent component and one or two child components. We need to raise an event in a child component either from the parent component, or we need a child component A to raise an event in child component B.
Continue reading “Calling a function in a child or sibling component in React”