simple-react-cytoscape
v1.0.4
Published
Simple container for Cytoscape in React Apps
Readme
simple-react-cytoscape
Lightweight zero-dependency React Component wrapper for Cytoscape to simplify integration

Installation
npm install simple-react-cytoscape cytoscapeUsage
- Configure CSS for class
simple-react-cytoscape
.simple-react-cytoscape {
width: 600px;
height: 600px;
}- Import library
import { SimpleReactCytoscape } from "simple-react-cytoscape";- Use the component with options (to pass data to the graph) and a callback (to get access to the cytoscape container for controls)
<SimpleReactCytoscape
options={options}
cyCallback={cyCallback} />