False, with “disjoint union” understood as a topological disjoint union. Take the rational numbers with the usual subspace topology from the real line.
Every connected subset of has at most one point. Indeed, if it contained , choose an irrational number . The two relatively open setspartition and separate any subset containing both and . Hence the connected components of are singletons.
If a topological disjoint union of nonempty connected spaces were homeomorphic to , the image of each summand would be connected, hence a singleton. Every summand would therefore be a one-point topological space. Their topological disjoint union is a discrete space, since each summand is open. But is not a discrete space: for each , the distinct rational numbers approach , so is not an isolated point. This is a contradiction. The set decomposition into connected components always exists; giving those pieces the topological disjoint union topology need not recover the original topology.
Write , where each is a labelled copy of the topological space , with its topological disjoint union topology. Define the bijectionFor a subset , let . By definition of the topological disjoint union, is open in exactly when each is open in .
The same condition characterizes open sets in the product topology on . If is open, the map is continuous, so each is open. Conversely, if each is open, thenis open, since the discrete topology makes every open in . Hence and its inverse function are continuous, proving the required homeomorphism. This also covers the case .