Your team now needs tables for more than users. The starter has a table that only knows how to render users, plus two datasets in data.js: USERS and HOUSES.
Build a reusable DataTable that is configured by a list of column definitions, and use it to render a Users table and a Houses table on the same page.
DataTable accepts caption, data and columns. It must not contain anything user- or house-specific.key and labelrow[key])$485,000)sortable (default true); non-sortable columns render a plain header with no button'text' (contains, case-insensitive) or 'range' (numeric min/max)aria-sort on the sorted <th>). It must sort by the raw value, not the rendered text: $1,250,000 is more than $297,500."<Label> contains" for text, and "Minimum <Label>" / "Maximum <Label>" for ranges. Empty inputs don't filter. All filters combine with AND.DataTable own its sort/filter/page state, or should the parent? Design a controlled API.key must be a key of the row type?Spotted a mistake or a rights concern? Report an issue