# chenglou/react-treeview

Easy, light, flexible tree view made with React.

Repository: https://github.com/chenglou/react-treeview
Canonical: https://ross.abutalabs.com/products/react-treeview
Language: JavaScript
License Family: other
Last push: 2025-05-29T01:49:11+00:00

## Health v2 (maintenance only)
Score: 43/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 23, release rhythm 35, longevity 100
- inputs: {"age_days": 4794, "days_push": 462, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1098, forks 156 (observed 2026-08-28T04:03:34.780880+00:00)

## What it is
A lightweight, flexible tree view component for React that supports nested TreeView nodes and customizable styling via CSS. It offers controlled and uncontrolled collapse state through simple props.

## Use cases
- render a collapsible tree view in react
- display hierarchical data with expand/collapse nodes
- customize tree node styling with css classes
- build a file explorer style tree in react
- nested tree component with uncontrolled collapsed state

## When to choose
- you need a minimal, dependency-light tree component for React
- you want full control over styling via plain CSS
- you prefer a simple API with controlled or uncontrolled collapse state

## When to avoid
- you need virtualized rendering for very large trees
- you require built-in features like drag-and-drop, checkboxes, or search
- you need a component with an active maintenance guarantee or explicit license file

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, frontend-framework
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: react, tree-view, react-component, hierarchical-data, nodejs

## Member repositories
- chenglou/react-treeview (main) score 43

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:34.780880+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:46:18.374710+00:00, confidence not recorded.
  - readme: https://github.com/chenglou/react-treeview (fetched 2026-08-28T04:03:34.780880+00:00, sha a340fd566a2d)
  - registry_npm: https://registry.npmjs.org/react-treeview (fetched 2026-08-29T12:49:27.589839+00:00, sha 1f6078a0a03c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
