Creating a Family Tree Maker/Editor with React

This is a really open question, but I have no idea how to go about this idea and I’m quite stuck.

I wanted to create a family tree maker, where the user can freely add new members of his family, and it is displayed neatly in a family tree chart. I imagined creating a node component for each family member, and somehow linking all the node components into a comprehensible Family Tree Chart. But the truth is, I have no idea how to do this linking.

Are there any packages that can help me out with this? I initially thought about using react-sortable-tree, but I wouldn’t be able to implement spouses, only children.