How can i add action buttons to rows (like `delete`)
I need to create a table that would allow to delete rows. Is it okay to just move colDefs into react component and call function passed as a prop on a button click?
2 Replies
harsh-harlequin•3y ago
I think this rather belong to table-questions instead of react-query-questions. Although I do not see why passing the
onDelete as a prop would be a bad thing to do? Might be useful to wrap NTPClientsColumns in a useMemo so the column are not regenerated on every rerenderflat-fuchsiaOP•3y ago
Yeah I did what you said at the end