frontend-collective / frontend-collective/react-sortable-tree
It is possible to use a node as ReactRef() ?
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 914
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked CodeSandbox, especially src/Tree.jsx, and trace how the sortable tree renders its React nodes. Check whether a node can be exposed to useRef() for Xarrows; done means the two nodes in separate trees can be addressed as React elements and connected by an arrow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100