es6-react-mixins icon indicating copy to clipboard operation
es6-react-mixins copied to clipboard

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

Open mephinet opened this issue 9 years ago • 2 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

mephinet avatar Feb 09 '16 17:02 mephinet

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

angus-c avatar Feb 12 '16 19:02 angus-c

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

rjharmon avatar Feb 24 '16 01:02 rjharmon