network-vis
A react component to visualise a graph of nodes and edges for the given data. It is based on vis.js library. Currently, only string nodes are supported.
Installation
To install this Component, run npm install network-vis
., Don't forget to install vis.js by running yarn add vis
.
Usage
To use the component, In your react Application just do
;; const containerStyle = width: '100vh' height: '100vh' { superprops; thisstate = listOfNodes: } async { try const jsonPromise = await ; this; catch err console; } return <div style=containerStyle> <Network outgoing='true' root='MainNode' subNodes=thisstatelistOfNodes onNodeClick=thishandleNodeClick /> </div> ; ;