How adazzle/react-data-grid works
Project type and purpose
• This is a React component library (“react‑data‑grid”) providing a high‑performance, feature‑rich data grid for React applications.
• It also ships a documentation/demo website under website/ showcasing usage examples and live playgrounds.
File structure
• Top‑level configuration & metadata: .github/, package.json, tsconfig.*, babel.config.json, rolldown.config.js, vite.config.ts, api-extractor.json, CI workflows.
• Core source code (src/):
• React components (*.tsx): DataGrid, TreeDataGrid, Cell, Row, Header, Summary, DragHandle, etc.
• Subdirectories for custom cell renderers (src/cellRenderers/), editors (src/editors/), hooks (src/hooks/), styles (src/style/), types (src/types.ts), utilities (src/utils/).
• Entry point: src/index.ts exports public API.
• Test suites (test/):
• Browser tests (test/browser/…) covering rendering, events, virtualization.
• Node/SSR tests (test/node/).
• Documentation/demo site (website/):
• React app with routes for each feature example (website/routes/), navigation (Nav.tsx), custom renderers, styling, context.
• Build & packaging tools:
• Rollup/Vite configs to produce ESM bundles for both library and website.
• API extractor for generating type docs.
• Linting, formatting, and CI (GitHub Actions, codecov).
Insights from README
• Library supports virtualization, theming (light/dark), frozen columns, sorting, grouping, editing, copy/paste, RTL, SSR.
• Exposes two main components: <DataGrid /> and <TreeDataGrid />, plus a set of hooks and utilities.
• Documentation site as a separate but integrated consumer.