react-resize-panel
react-resize-panel copied to clipboard
Error with ref
Uncaught Invariant Violation: Element ref was specified as a string (wrapper) 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
I used the example from the demo.
import ResizePanel from "react-resize-panel";
left panel
Hi Hammond, can you give the steps to reproduce the error?
Ah I did but the site has added it as actual HTML. I just copy and pasted from the demo.
<ResizePanel direction="e">
<div className="panel sidebar">left panel</div>
</ResizePanel>
Can you paste the code for the entire component so I can reproduce here?