I am rather confused with the last line of the argument used in 00JA, Stacks Project.
Lemma 00JA. Any ring with finitely many maximal ideals and locally nilpotent Jacobson radical is the product of its localizations at its maximal ideals. Also, all primes are maximal.
Proof. Let $R$ be a ring with finitely many maximal ideals $\mathfrak m_1, \ldots, \mathfrak m_n$. Let $I = \bigcap_{i = 1}^n \mathfrak m_i$ be the Jacobson radical of $R$. Assume $I$ is locally nilpotent. Let $\mathfrak p$ be a prime ideal of $R$. Since every prime contains every nilpotent element of $R$ we see $ \mathfrak p \supset \mathfrak m_1 \cap \ldots \cap \mathfrak m_n$. Since $\mathfrak m_1 \cap \ldots \cap \mathfrak m_n \supset \mathfrak m_1 \ldots \mathfrak m_n$ we conclude $\mathfrak p \supset \mathfrak m_1 \ldots \mathfrak m_n$. Hence $\mathfrak p \supset \mathfrak m_i$ for some $i$, and so $\mathfrak p = \mathfrak m_i$. By the Chinese remainder theorem (Lemma 00DT) we have $R/I \cong \bigoplus R/\mathfrak m_i$ which is a product of fields. Hence by Lemma 00J9 there are idempotents $e_i$, $i = 1, \ldots, n$ with $e_i \bmod \mathfrak m_j = \delta_{ij}$. Hence $R = \prod Re_i$, and each $Re_i$ is a ring with exactly one maximal ideal. $\square$
How is the "Hence $R=\prod Re_i$..." deduction made?
Why does $Re_i$ have exactly one maximal ideal?
Relating back to the statement, how is this a localization at the maximal ideals?