0

I'm using react-data-table-component.

https://www.npmjs.com/package/react-data-table-component

enter image description here

There is a structure that works completely with or without data in the table. However, my question is in the text shown by default when there is no data.

enter image description here

My only goal is to change the text 'There are no records to display' written here.

thanks,

okan Acer
  • 61
  • 1
  • 9

1 Answers1

0

Yes you can change it. Documentation available on given link provided by you. DOCUMENTATION

Code (Sample 1)

<DataTable
    title="Tables"
    noDataComponent={"No records"}
    columns={[1, 2, 3]}
  />

Code(Sample 2)

<DataTable
    title="Tables"
    noDataComponent={<b>No Records</b>}
    columns={[1, 2, 3]}
  />
RiTeSh
  • 513
  • 3
  • 12