angus-c / es6-react-mixins

universal mixin adapter for react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning: xy(...): React component classes must extend React.Component.

mephinet opened this issue · comments

We are using 0.2.1 of es6-react-mixins with react 0.14.7. One of our components uses two mixins, and works fine. However, our console log is flooded with warnings a la:
Warning: xyComponent(...): React component classes must extend React.Component.
Since the component is used in a <td>, the warnings amount to thousands of lines. Any chance this warning gets silenced? It is triggered here: https://github.com/facebook/react/blob/v0.14.7/src/renderers/shared/reconciler/ReactCompositeComponent.js#L178

It's unfortunate that they expect the component to be an immediate descendent of React.Component. Not sure if there's much we can do but will try to take a look tonight or tomorrow

When I told JSPM to use 0.14 to resolve all react's, those warnings seem to have gone away.