react-data-table-component-extensions icon indicating copy to clipboard operation
react-data-table-component-extensions copied to clipboard

Columns and data are in the same functional component as the DataTable definition; does not work

Open gmarshall56 opened this issue 3 years ago • 0 comments

Hello: For this to work do the column definitions and the data have to be defined and exported from a separate javascript file? The DataTableExtensions does not work in my react functional component where I have the columns and the data defined in. With this configuration I get an empty table displayed. Do you have a sample of how this would work if the columns and data arrays are defined in the same react javascript file that the <DataTable.... is defined? Thank you

gmarshall56 avatar Mar 29 '21 20:03 gmarshall56