Recipes
Working patterns for common product needs. Each recipe is self-contained — copy into your project and adjust.
Bulk-approve or reject requests. Toolbar buttons adapt to the selected rows' status — already-resolved rows are excluded automatically.
Wire sorting, pagination, and column filters to your own API in a single useEffect.
Sync sort, filters, and pagination to the URL — shareable links, reload-safe, back button works.
Department overview with expandable rows, health-status row tinting, and inline budget-spend bars.
Fixed header, severity row tinting, and multi-field live search — all wired together.
Save and restore resizable column widths to localStorage or a back-end API.
Per-row ⋮ menu with edit, duplicate, and delete — confirmation modals included.
Flash-on-change rows for a real-time price grid, using conditionalRowStyles and keyField.
Spreadsheet-style inline editing with a derived total column and a running grand total.
Per-group totals and drill-down built from a plain array reduce — no groupBy API needed.
Load a user-uploaded CSV file into the table with FileReader and a small parser.