How to use the react-table.ReactTableDefaults.TableComponent function in react-table

To help you get started, we’ve selected a few react-table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glin / reactable / srcjs / Reactable.js View on Github external
let value = row._original[col.id]
            if (matchers[col.id](value)) {
              return true
            }
          }
        })
        return rows
      }
    }
    filterColumns = allVisibleColumns.concat(searchColumn)
  }
  return this.oldFilterData(data, filtered, defaultFilterMethod, filterColumns)
}

// Table component with a search input
const DefaultTableComponent = ReactTableDefaults.TableComponent
const SearchTableComponent = ({ searchValue, onSearchChange, ...rest }) => {
  const searchInput = (
    <input aria-label="Search" placeholder="Search" value="{searchValue}" type="text">
  )
  return (
    
      {searchInput}