Answer
Move shared state to the nearest common ancestor and pass values and handlers down to children. This gives related components one source of truth.
Move shared state to the nearest common ancestor and pass values and handlers down to children. This gives related components one source of truth.