react-table with filter and select column in the same table
I'm trying to use react-table 7.5 to have a table with search bar and select by rows features. I have the code of both search and select row separately, but I can't make it work together. This is my Table component: const Table = (...) => { const [data, setData] = useState(MOCK_DATA); const columns = useMemo(() => COLUMNS, []); const defaultColumn = React.useMemo( () => ({ Filter: ColumnFilter, }), [] ); // table props let { getTableProps, getTableBodyProps, headerGroups, footerGroups, rows, prepareRow, setGlobalFilter, selectedFlatRows, state: { selectedRowPaths }, } = useTable( { columns, da
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.