Updated to reflect deprecation in React 0.12