import { AjaxTable } from '@ninetyine/react-table'
AjaxTable
should be used when data is not retrieved from an API. The AjaxTable
extends the base Table
so can use all of the same props, find out more here.
Props
url
: The endpoint where dataset is fetched fromparams
: An object that defines params to be passed as a query string when retrieving the datasetresponseManipulator
: Manipulate the response to return the datasetonLoad
: A callback which is triggered after the dataset is retrievedloadingRow
: A valid React element to be displayed while the dataset is being retrieved