I'm using the gridjs-react
library to create a table as follows:
<Grid
columns={['Name', 'Email']}
data={[
['John', 'john@example.com'],
['Mike', 'mike@gmail.com']
]}
ref={tableRef}
search={true}
pagination={{
enabled: true,
limit: 1,
}}
/>
However, I want to ultimately add an item to the dom to get this:
I thought about using ref
but I couldn't get access to the following div since it is only rendered after the component Grid is mounted: (As far as I know)