Proposition 8
Tag 0BBU, permanent. Cite it as [Bourbaki, Tag 0BBU].
General Topology, chapter I, § 11. Connectedness
Every product of connected spaces is connected. Conversely, if a product of non-empty spaces is connected, then each of the factors is connected.
Let be a product of topological spaces. If the are non-empty, we have for each ; hence if is connected so are the (no. 2, Proposition 4). Conversely, suppose that each of the is connected and is not. By Proposition 5 of no. 2, there exists a continuous surjective mapping , where is a discrete space which contains more than one point. Let be any point of , and any index; the partial mapping , defined by where and if , is continuous on ; since is connected, must be constant on . It follows immediately by induction that for all points such that for all but a finite number of indices . But these points form a dense subset of (§ 4, no. 3, Proposition 8). Hence is continuous on and constant on a dense subset of , and therefore constant on (§ 8, no. 1, Proposition 2, Corollary 1). But this contradicts the definition of .
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.