79304981

Date: 2024-12-24 07:27:34
Score: 2
Natty:
Report link

As mentioned in the top answer, if you want to share state between different components, you should lift the state up to their common parent. https://github.com/houpjs/houp can help you implement this quickly.

see the example in CodeSandbox

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: jicler