0

It is said in all React docs, that for component A to change state of component B, A has to be the owner of B or at least be on higher level in common hierarchy.

Say, I don't want A and B to be in the same component hierarchy. They are located in opposite sides of the page but I stil want them to interact.

Can I do this? Can I send some message from A to B or call some method or?...

lithuak
  • 6,028
  • 9
  • 42
  • 54

0 Answers0