Skip to content

Instantly share code, notes, and snippets.

View zigcccc's full-sized avatar

Žiga Krašovec zigcccc

View GitHub Profile
@zigcccc
zigcccc / PageableTable.js
Last active November 3, 2022 08:19
Generic Pageable Table
// 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,