Skip to content

How to properly run the npm package ? #53

Answered by castarco
AvaterClasher asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AvaterClasher .


Problem 1

The render function is used there for illustrative purposes (assuming that the reader already has experience with React), but it refers to the (now deprecated) render function from ReactDOM: https://react.dev/reference/react-dom/render (which has been replaced by https://react.dev/reference/react-dom/client/createRoot#root-render .

In any case, I'll try to improve the documentation to make it clearer.


Problem 2

To render what's inside the nodes of the tree data structure as text inside the nodes, you can pass the following prop (documented here https://github.com/Coder-Spirit/beautiful-tree/blob/main/@beautiful-tree/react/README.md#getnodecontent):

const t1 = 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by castarco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants