Updated to reflect deprecation in React 0.12

The change is detailed in [the changelog](https://facebook.github.io/react/blog/2014/10/28/react-v0.12.html) for React 0.12.