I have created a React Table. I want to hide or show some columns in my table by user action. By default all columns should be visible but we will have some check boxes to h
In column there is a property show
.
show: true, // can be used to hide a column
.
Make it false to hide the particular column. Keep user's check-box values in the state.
https://react-table.js.org/#/story/readme
Note: The column property show
is deprecated. Use initialstate.hiddenColumns
instead.
Check: https://github.com/tannerlinsley/react-table/issues/1804