Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is possible to use a node as ReactRef() ? #931

Open
joelboergers opened this issue Jul 28, 2022 · 1 comment
Open

It is possible to use a node as ReactRef() ? #931

joelboergers opened this issue Jul 28, 2022 · 1 comment

Comments

@joelboergers
Copy link

Hello,

i want to connect two node in two different tree with an arrow from the library Xarrows.
The problem i have i that an arrow is connecte between two react element, (like the SortableTree how is an personal React element ), i had to get the react element of the node, it is possible ?.

here is a code sand box link (https://codesandbox.io/s/wild-surf-hz1gdc?file=/src/Tree.jsx)

If you know how to get access to a Node and use it with useRef(), thank you in advance for your help

@joelboergers
Copy link
Author

@fritz-c how did you build your node structure, is it possible to access it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant