react-base-table
react-base-table copied to clipboard
Dynamically color the rows based on some information in the row prop
Is there a simple way of dynamically colouring the table rows based on some prop values? I have a scenario where the user has configured what color they want the rows to be based on some values in the rows. any thoughts @nihgwu ?
rowClassName={({ rowData }) => rowData.error ? styles.red : styles.black}