Fixed react 0.12 deprecation changes

React.isValidClass is deprecated: https://github.com/facebook/react/issues/2374
React.renderComponent --> React.render: https://github.com/facebook/react/pull/2002

The changes made should be simple enough to not cause any trouble, I guess.