What is the definition of product that it's being considered here to have the existence of a unique continuous function ?
Let $X_i$ be path connected topological spaces.
Then $\prod_i X_i$ is path connected.
Proof.
Assume $X=\prod_{i\in I}X_i$ with $X_i$ path-connected. Let $x=(x_i)_{i\in I}$, $y=(y_i)_{i\in I}$ be two points in $X$. By assumption, thee exist continuous paths $\gamma_i\colon[0,1]\to X_i$ with $\gamma_i(0)=x_i$ and $\gamma_i(1)=y_i$.
By definition of product, there exists a unique continuous $\gamma\colon[0,1]\to X$ such that $\pi_i\circ\gamma=\gamma_i$ for all $i\in I$ where $\pi_i$ is the projection $X\to X_i$. That makes $\gamma$ a path from $x$ to $y$.
This proof is from here Product of path connected spaces is path connected .