Support React v0.12

This adds support for the new React v0.12 api which was a breaking change from the old one
2.0.0