react-data-table-component-extensions
react-data-table-component-extensions copied to clipboard
Columns and data are in the same functional component as the DataTable definition; does not work
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