Residual finiteness is restricted direct product-closed

Statement
Suppose $$I$$ is an indexing set and $$G_i, i \in I$$ is a collection of residually finite groups. Then, the restricted direct product of the $$G_i$$s is also a residually finite group.

Related facts

 * Local finiteness is restricted direct product-closed