Update React examples for React 0.12.

This depends on what getOutputComponent is returning. If it is really a component, then the code should not even work. Unfortunately, the custom initialization code used in the website makes it a bit harder for me to follow what is happening,