Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mephinet opened this issue Feb 9, 2016 · 2 comments

Comments

@mephinet
Copy link

mephinet commented Feb 9, 2016

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

@angus-c
Copy link
Owner

angus-c commented Feb 12, 2016

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

@rjharmon
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants