The setup
You have this model:
\begin{align*}
p & \, \sim \, \text{beta}(\alpha, \beta) \\
x \, | \, p & \, \sim \, \text{binomial}(n, p)
\end{align*}
The densities for which are
\begin{equation*}
f(p) = \frac{1}{B(\alpha, \beta)} p^{\alpha - 1} (1 - p)^{\beta - 1}
\end{equation*}
\begin{equation*}
g(x \, | \, p) = {n \choose x} p^x (1 - p)^{n - x}
\end{equation*}
and in particular note that
\begin{equation*}
\frac{1}{B(\alpha, \beta)} = \frac{\Gamma(\alpha + \beta)}{\Gamma(\alpha)\Gamma(\beta)}.
\end{equation*}
The implicit version
Now. The posterior distribution is proportional to the prior $f$ multiplied by the likelihood $g$. We can ignore constants (i.e. things that aren't $p$), yielding:
\begin{align*}
h(p \, | \, x)
& \propto f(p) g(p \, | \, x) \\
& = p^{\alpha - 1} (1 - p)^{\beta - 1} p^x p^{n - x} \\
& = p^{\alpha + x - 1} (1 - p)^{\beta + n - x - 1}.
\end{align*}
This has the 'shape' of a beta distribution with parameters $\alpha + x$ and $\beta + n - x$, and we know what the corresponding normalizing constant for a beta distribution with those parameters should be: $1 / B(\alpha + x, \beta + n - x)$. Or, in terms of gamma functions,
\begin{equation*}
\frac{1}{B(\alpha + x, \beta + n - x)} = \frac{\Gamma(n + \alpha + \beta)}{\Gamma(\alpha + x)\Gamma(\beta + n - x)}.
\end{equation*}
In other words we can do a bit better than a proportional relation without any extra legwork, and go straight to equality:
\begin{equation*}
h(p \, | \, x)
= \frac{\Gamma(n + \alpha + \beta)}{\Gamma(\alpha + x)\Gamma(\beta + n - x)} p^{\alpha + x - 1} (1 - p)^{\beta + n - x - 1}.
\end{equation*}
So one can use knowledge of the structure of a beta distribution to easily recover an expression for the posterior, rather than going through some messy integration and the like.
It sort of gets around to the full posterior by implicitly cancelling the normalizing constants of the joint distribution, which can be confusing.
The explicit version
You could also grind things out procedurally, which can be clearer.
It's not actually all that much longer. Note that we can express the joint distribution as
\begin{align*}
f(p)g(x \, | \, p)
= \frac{1}{B(\alpha, \beta)}{n \choose x} p^{\alpha + x - 1} (1 - p)^{\beta + n - x - 1}
\end{align*}
and the marginal distribution of $x$ as
\begin{align*}
\int_{0}^{1}f(p)g(x \, | \, p)dp
& = \frac{1}{B(\alpha, \beta)}{n \choose x} \int_{0}^{1} p^{\alpha + x - 1} (1 - p)^{\beta + n - x - 1} dp \\
& = \frac{1}{B(\alpha, \beta)}{n \choose x} \frac{\Gamma(\alpha + x)\Gamma(\beta + n - x)}{\Gamma(\alpha + \beta + n - x)}
\end{align*}
So we can express the posterior using Bayes' theorem by
\begin{align*}
h(p \, | \, x)
& = \frac{f(p) g(x \, | \, p)}{\int_{0}^{1}f(p) g(x \, | \, p)dp} \\
& = \frac{\frac{1}{B(\alpha, \beta)}{n \choose x} p^{\alpha + x - 1} (1 - p)^{\beta + n - x - 1}}{\frac{1}{B(\alpha, \beta)}{n \choose x} \frac{\Gamma(\alpha + x)\Gamma(\beta + n - x)}{\Gamma(\alpha + \beta + n)}} \\
& = \frac{\Gamma(n + \alpha + \beta)}{\Gamma(\alpha + x)\Gamma(\beta + n - x)} p^{\alpha + x - 1} (1 - p)^{\beta + n - x - 1}
\end{align*}
which is the same thing we got previously.