Consider an integral scheme $X$ of finite type over a field $k$. If $k\subseteq k'$ is a field extension, then the scheme $X' = X\otimes_k k'$ is not necessarily integral. For instance, take $X = \operatorname{Spec} \mathbb{R}[x,y]/(x^2+y^2)$ over $\mathbb R$ and $k' = \mathbb C$. Then $$X' = \operatorname{Spec}\mathbb C[x,y]/(x^2+y^2) = \operatorname{Spec} \mathbb C[x,y]/(x+iy) \cup \operatorname{Spec} \mathbb C[x,y]/(x-iy)$$ has two irreducible components.
Nonetheless, the dimension of each irreducible component of $X'$ is equal to the dimension of $X$. Why?
(This is Ex. II.3.20(f) in Hartshorne's book "Algebraic Geometry".)
By Noether's normalization lemma, we may find $a_1,\dots,a_d\in A$, such that $k[x_1,\dots,x_d]\to A,x_i\mapsto a_i$ is injective and finite. So, $d=\dim A$. $k'$ is a flat $k-$module, therefore $k'[x_1,\dots,x_d]\to A\otimes_k k'$ is injective and finite. The first statement follows.