Closed xhluca closed 5 years ago
@VeraZab @bpostlethwaite
I published v1.0.1. You should be able to import CytoscapeComponent from 'react-cytoscapejs'
, and the readme has been updated re. the style attribute in the example.
Thank you!
Closing for now, can re-open if this pops up again
Hi @maxkfranz, still seeing this issue when I try and run the basic example. Implementing above solution fixed it. Could well be user error. Shout out if you want any of my settings.
Currently trying to run the basic example on react-cytoscapejs version 1.0.0 using create-react-app. Here's what i have done:
At this point, we change the
src/App.js
file with the following code modified from the basic example:Running
yarn start
returns the following error:I solved this by changing the import statement to be:
Then the error became:
which was solved by changing the return statement for the
render()
method to:Which compiled successfully.
I suggest updating the readme to take those problems into account. Let me know if I should start a PR. Thank you!