Equivalence of Definitions of Component

Theorem
Let $$T$$ be a topological space.

Let a component of $$T$$ be defined as:


 * An equivalence class where the equivalence relation is "being in the same connected subspace";


 * A maximal connected subspace.

Then these two definitions of component are equivalent.