Update to React v0.12.x. Alter code accordingly.