I'm new to react-table. Currently I have a 5 rows table to render on react-table, and I don't need the pagination function. I understand to turn pagination off, it can be done by "pagination={false}". However the pagination control still showing, is there a way to hide it?
I just found prop showPagination={false}
. Try that.
https://github.com/tannerlinsley/react-table/tree/v6#props
you can add props like this in ReactTable
showPaginationBottom={false}
you can also decide to show pagination on basis of data rows length
showPaginationBottom={data.length > 10 ? true: false}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With