Closed scottc11 closed 5 years ago
The error is because of the way you're using the cy prop. It expects a function, so you should do:
cy = { cy => this.cy = cy }
instead of:
cy = { cy = this.cy = cy }
:man-facepalming:
Did you find a solution to this problem. I am currently facing it and its preventing me from making a PR
I cannot access the underlying Cytoscape instance via Reacts ref API. I get the following error in the console ->
Uncaught ReferenceError: cy is not defined
Upon inspecting the
component.js
file, I don't see any of the suggested syntax found in the React Docs. Am I doing something wrong?