Undo/redo via the useDataGridState quick start, with toolbar buttons wired to the returned history object.
pnpm dlx shadcn@latest add "https://gridcn.vercel.app/r/data-grid-history-demo.json"