Skip to content

Instantly share code, notes, and snippets.

Avatar

Žiga Krašovec zigcccc

View GitHub Profile
@zigcccc
zigcccc / PageableTable.js
Last active Nov 3, 2022
Generic Pageable Table
View PageableTable.js
// Organism (utilizes Table component which is a molecule, but is not strictly tied to a single feature)
/**
* The goal of this component is to:
* - render the table data
* - handle initial API call + any additional page and/or search related API calls
* - render table header & footer with pagination and actions
*/
const PageableTable = ({
columns,