Building generic (reusable) table

5 min read
#engineering
thumbnail

I joined Argentex to lead the FE web platform (aka Portal) for our clients to interact with our API. It was rich in features from User Management, Onboarding & KYC, User Profile Settings and much more...

We were not sure whether to bring a new library for the new table component, or implement a basic version for the time being.

Ultimately, we decided to quickly implement using ShadCN (which we already had).

Table API

A basic example of how we can use the table would be something like...

import {
  title,
  readTimeInMinutes,
  status,
  date,
  tags,
} from './table.columns'
 
export default function Table() {
  return (
    <div className="border-foreground/10 mx-auto max-w-full rounded-sm border lg:max-w-7xl">
      <DataTable
        columns={[title, date, readTimeInMinutes, status, tags]}
        data={cheats}
      />
    </div>
  )
}

Why stop here? Adapt and evolve with the ever-changing tech landscape.

Innovation thrives on continuous learning. Keep pushing your boundaries, acquire new skills, and stay at the forefront of the software engineering field.

Disecting my portfolio

2 min read
#engineering
Lorem, ipsum dolor Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quod natus nobis amet vero sint atque quae perferendis debitis? Reiciendis, earum aperiam provident nam similique quis beatae odit culpa commodi fugiat? Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit voluptatibus praesentium natus facere molestiae quam sunt excepturi. Ea doloribus, voluptatibus at saepe assumenda soluta delectus. Voluptatem veritatis nostrum magnam esse!

Copyright © 2025-present nbits.me 
All Rights Reserved.

Picture of the author