[fixed] checks for class instead of components

Previously the checks for components were the same as class. This changes in the new version of react. See this issue: https://github.com/facebook/react/issues/1164
Merge pull request #81 from VictorSigma/react-0.11.0-rc1

[fixed] checks for class instead of components