Skip to Content
React Flow 13 is here! Read the announcement →
ExamplesSubflows & Grouping

Parent Child Relation

This example demonstrates how to dynamically create parent-child relationships between nodes. You can drag a node over a group node to attach it as a child, and drag it out of the group again to detach it. A custom group node highlights itself while a node is dragged over it, and the changeParent helper takes care of converting absolute positions to parent-relative coordinates.

About this Pro Example