DEV Community

Discussion on: Make interactive node-based graphs with React Flow. 📈

Collapse
 
vaibhavkhulbe profile image
Vaibhav Khulbe

I don’t know much about saving and restoring custom nodes for this. Maybe you can start a new issue in its repo?

Collapse
 
saiprasad1996 profile image
Sai Prasad

Thanks Vaibhav for your quick response. I've figured out the way to achieve the functionality. FYI, you can create custom nodes and register the names with ReactFlow component and use the same name as the node type to be able to save and restore custom components. You can refer this link to get a clearer picture of what I was talking about - reactflow.dev/examples/custom-node/
Look out for ColorSelectorNode.js and setElements() function usage

Thread Thread
 
vaibhavkhulbe profile image
Vaibhav Khulbe

Nice, thanks for sharing!