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
React 16 - Update: Warning: Stateless function components cannot be given refs. #896
Comments
knowbody
added a commit
to knowbody/react-dnd
that referenced
this issue
Oct 5, 2017
This was referenced Oct 5, 2017
darthtrevino
pushed a commit
that referenced
this issue
Oct 7, 2017
This was referenced Oct 10, 2017
Closed
If I have
And I'm still getting this error:
For code:
What might that be because of?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently updated my project to React v16.0.0 from v15.6.2, and ran into this compatibility issue.
It appears that when the
DecoratedComponent
wrapped byDragDropContext
andDragSource
uses ref in React v16.0.0, this error is thrown. Error persists even if I refactor the component from stateless to class-based.package versions
react@^16.0.0
react-dom@^16.0.0
react-dnd@^2.5.3
react-router@4.1.2
The text was updated successfully, but these errors were encountered: