I would like to prove that the connected components of an open set are open.
Take $U$ an open set in a space $X$ and $U=\cup_\alpha C_\alpha$ where the $C_\alpha$ are the connected components.
Suppose that there exists a $C_\alpha$ which is closed. Then ${C_\alpha}^c$ is open and ${C_\alpha}^c\cap U$ is open. However $$U= U\cap X = U\cap(C_\alpha\cup{C_\alpha}^c) = C_\alpha\cup ({C_\alpha}^c\cap U)$$
which is neither open nor closed. So we have a contradiction.
Is this proof correct?