Fixes to how React components are rendered on the server and revived on the client environments.

Fixes to how React components are rendered on the server and revived on the client environments.