Table Component API (TanStack-compatible)
Uses useReactTable + flexRender + structural components (<Table>, <Thead>, <Tbody>,<Tr>, <Th>, <Td>) — identical to TanStack Table's API pattern, but rendering on canvas.
Features demonstrated:
useReactTable()— TanStack-compatible table instanceflexRender()— resolve header/cell render functions<Table table={table}>— instance-driven renderingtable.getHeaderGroups()— declarative header iterationrow.getVisibleCells()— cell-level accessonSortingChange: setSorting— updater pattern (direct useState setter)onColumnSizingChange: setColumnSizing— column resize with updater- Sorting and resize events do not conflict (resizeJustEnded guard)