diff --git a/examples/react/editable-data/src/main.tsx b/examples/react/editable-data/src/main.tsx index 0b12a9fd8c..3f8e8d0277 100644 --- a/examples/react/editable-data/src/main.tsx +++ b/examples/react/editable-data/src/main.tsx @@ -26,7 +26,7 @@ declare module '@tanstack/react-table' { // Give our default column cell renderer editing superpowers! const defaultColumn: Partial> = { - cell: ({ getValue, row: { index }, column: { id }, table }) => { + cell: function Cell({ getValue, row: { index }, column: { id }, table }){ const initialValue = getValue() // We need to keep and update the state of the cell normally const [value, setValue] = React.useState(initialValue)