Use Lupa datasets and display as a table
Lupa
is on NPM so install using your preferred JS package manager.
yarn add lupa-table
npm install lupa-table
Anywhere underneath a Lupa <Dataset>
component you can use the <LupaTable>
component.
import React from 'react';
import { MockDataset } from '@lupa/mock'; // This can be any lupa provider
import { LupaTable } from 'lupa-table';
export default function App() {
return (
<MockDataset data={[...]}>
<LupaTable />
</MockDataset>
)
}