@easyv/react-flow-renderer
v11.0.7
Published
  {
return (
<ReactFlow
nodes={nodes}
edges={edges}
onNodesChange={onNodesChange}
onEdgesChange={onEdgesChange}
onConnect={onConnect}
>
<MiniMap />
<Controls />
</ReactFlow>
);
}Before you start you need to install the React Flow dependencies via npm install and the ones of the examples cd example && npm install.
If you want to contribute or develop custom features the easiest way is to start the dev server:
npm startand the example app via:
cd example && npm start The example app serves the content of the example folder and watches changes inside the src folder. The examples are using the source of the src folder.
Testing
Testing is done with cypress. You can find the tests in the integration/flow folder. In order to run the tests do:
npm run testMaintainers
React Flow is developed and maintained by webkid, a web development agency with the focus on data driven applications from Berlin. If you need help or want to talk to us about a collaboration, feel free to contact us:
You can also use our contact form or join the React Flow Discord Server.
Community Packages
- useUndoable - Hook for undo/redo functionality with an explicit React Flow example
- react-flow-smart-edge - Custom edge that doesn't intersect with nodes
- Feliz.ReactFlow - Feliz React Bindings for React Flow
Credits
React Flow was initially developed for datablocks, a graph-based editor for transforming, analyzing and visualizing data in your browser. Under the hood, React Flow depends on these great libraries:
- d3-zoom - used for zoom, pan and drag interactions with the graph canvas
- react-draggable - used for making the nodes draggable
- zustand - internal state management
License
React Flow is MIT licensed.
