element-react
element-react copied to clipboard
String ref in Dropdown component
Description
Using Dropdown component leads to error
Error Trace (if possible)
Uncaught Error: Element ref was specified as a string (default) but no owner was set. This could happen for one of the following reasons:
- You may be adding a ref to a function component
- You may be adding a ref to a component that was not created inside a component's render method
- You have multiple copies of React loaded
Solution
Upgrade component to new React guide rules
https://reactjs.org/warnings/refs-must-have-owner.html
[email protected] - this version of react is used in the project