"# react-tree-view" Use the value of the toggled prop to determine the initial state of the content (collapsed/expanded). Use the useState() hook to create the isToggled state variable and give it the value of the toggled prop initially. Render a element and bind its onClick event to alter the component's isToggled state. Determine the appearance of the component, based on isParentToggled, isToggled, name and checking for Array.isArray() on data. For each child in data, determine if it is an object or array and recursively render a sub-tree or a text element with the appropriate style.
-
Notifications
You must be signed in to change notification settings - Fork 0
aozoragh/react-tree-view
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Renders a tree view of a JSON object or array with collapsible content.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published