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 so links are shareable and state survives reload and back navigation.
Department overview with expandable rows, health-status row tinting, and inline budget-spend bars.
Fixed header, severity row tinting, and multi-field live search.
Save and restore resizable column widths to localStorage or a back-end API.
Per-row ⋮ menu with edit, duplicate, and delete actions and confirmation modals.
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 with an array reduce instead of a groupBy API.
Load a user-uploaded CSV file into the table with FileReader and a small parser.