You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,19 @@ Most props of this component are [Cytoscape JSON](http://js.cytoscape.org/#core/
6
6
7
7
## Usage
8
8
9
+
### npm
10
+
11
+
```bash
12
+
npm install react-cytoscapejs
13
+
```
14
+
15
+
### yarn
16
+
17
+
```bash
18
+
yarn add react-cytoscapejs
19
+
```
20
+
21
+
9
22
The component is created by putting a `<CytoscapeComponent>` within the `render()` function of one of your apps's React components. Here is a minimal example:
10
23
11
24
```jsx
@@ -29,7 +42,7 @@ class MyApp extends React.Component {
0 commit comments