Updates the React example for v0.3.0 and refactors the prerender method
a bit.