simple-react-cytoscape
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

simple-react-cytoscape

Lightweight zero-dependency React Component wrapper for Cytoscape to simplify integration


Installation

npm install simple-react-cytoscape cytoscape

Usage

  1. Configure CSS for class simple-react-cytoscape
.simple-react-cytoscape {
  width: 600px;
  height: 600px;
}
  1. Import library
import { SimpleReactCytoscape } from "simple-react-cytoscape";
  1. 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} />

Examples

See CodeSandbox example

Package Sidebar

Install

npm i simple-react-cytoscape

Weekly Downloads

49

Version

1.0.4

License

ISC

Unpacked Size

11.8 kB

Total Files

17

Last publish

Collaborators

  • bigjob