Proposition (map descends on path components)

For any map $f: X\to Y$, there is a well-defined associated function $$ \begin{align*} π_0(f) : π_0(X) &\to π_0(Y) \\ [x] &\mapsto [f(x)] \end{align*} $$ where $X\to{}$$π_0(X)$${}: x\mapsto [x]$ etc sends a point to its path component. (Proof)

In fact $π_0$ is a functor from the homotopy category to the category of sets, namely:

If $f$ is a homotopy equivalence, then $π_0(f)$ is a bijection. (Proof)