Skip to content

Commit 665fc4b

Browse files
author
Xing Han Lu
authored
Fix import and Unexpected token errors for demos
1 parent 003a335 commit 665fc4b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class MyApp extends React.Component {
2525
{ data: { source: 'one', target: 'two', label: 'Edge from Node1 to Node2' } }
2626
];
2727

28-
return <CytoscapeComponent elements={elements} style={ { width: '600px', height; '600px' } } />;
28+
return <CytoscapeComponent elements={elements} style={ { width: '600px', height: '600px' } } />;
2929
}
3030
}
3131

@@ -93,7 +93,7 @@ N.b. to use an external [layout extension](http://js.cytoscape.org/#extensions/l
9393
import Cytoscape from 'cytoscape';
9494
import COSEBilkent from 'cytoscape-cose-bilkent';
9595
import React from 'react';
96-
import CytoscapeComponent from 'cytoscape-reactjs';
96+
import CytoscapeComponent from 'react-cytoscapejs';
9797

9898
Cytoscape.use(COSEBilkent);
9999

@@ -289,4 +289,4 @@ The `cy` prop allows for getting a reference to the `cy` Cytoscape object, e.g.:
289289
- Add npmignore
290290
- v1.0.0
291291
- Initial release
292-
292+

0 commit comments

Comments
 (0)