Corollary 2
Tag 0B2B, permanent. Cite it as [Bourbaki, Tag 0B2B].
General Topology, chapter I, § 4. Product of topological spaces
Let be two topological spaces. In order that a mapping should be continuous it is necessary and sufficient that the mapping is a homeomorphism of onto the graph of (considered as a subspace of the product space ).
Since , the condition is sufficient. It is also necessary, for if is continuous, then is bijective and continuous (Proposition 1) and the inverse of is the restriction of to , which is continuous (cf. Set Theory, Chapter IV, § 2, no. 4, criterion CST 17).
Bourbaki puts the proof directly after the statement, so what is above is the statement and its proof together.