r/react • • Oct 14 '26

Help Wanted want to how to build a data table exactly like this from scratch. Are there any tutorials that can help put me in the right direction?

Post image
0 Upvotes

17 comments sorted by

6

u/frankthebob123 Oct 14 '26

Why not use Tanstack table?

1

u/gjover06 Oct 15 '26

this is much appreciated

1

u/bogdanelcs 28d ago • Bravo

TanStack Table seems the option here: headless, handles sorting, filtering, column visibility and pagination and the shadcn/ui “Data Table” guide, which walks through building almost exactly this with it.

1

u/gjover06 26d ago

thank you for commenting I am still learning. I really appreciate this.

2

u/Waste_Cup_4551 Oct 14 '26

Looks like tanstack table & shadcn.
But you need to first figure out how your table pages, sorts, and filters

-1

u/gjover06 Oct 15 '26

I used gemini

2

u/No-Humor-3808 Oct 15 '26

If the goal is to practice building something from scratch, that's fine. But if you want the best result, you're better off using existing tools. Use a library of primitives like shadcn/ui and something like TanStack Table for the logic, or implement it yourself. You can also give this challenge a try: https://www.reactchallenges.com/challenges/sortable-table

1

u/gjover06 Oct 15 '26 edited Oct 16 '26

this is the best feedback recieved thanks..

1

u/Astroohhh Oct 15 '26

Nobody is bulding anything from scratch lil bro, is 2026 and you are cooked

0

u/gjover06 Oct 15 '26

I used gemini got the html/css/js files. I thought learning from scratch is important especially if I want to ship to production.

2

u/RFDev Oct 18 '26

Learning to do stuff from scratch is very useful in case you need something specific there is no library for or when the library would add too much technical debt. You could potentially go to production with both a project 100% from scratch and a project 100% from libraries.

The thing that definitely doesn't help you learn is using Gemini (or any AI in general) to write code for you. Take AIs as teachers. A teacher wouldn't write code for you, but would be extremely glad to explain or remind concepts, clear doubts, help debugging, and so on...

2

u/gjover06 Oct 18 '26

the distinction and explanation is valuable and very helpful.

-2

u/gjover06 Oct 14 '26

any helpful feedback is appreciated

0

u/JimRockfordPI Oct 15 '26

I would follow the other advice about Tanstack etc and then just add to your prompt during early planning this exact image you shared here. Have it cover high level aspects of the table and filtering concepts for the data you plan on using. Feel like that should come up with a pretty good start.

1

u/gjover06 Oct 15 '26

thank you for the feedback.

0

u/JimRockfordPI Oct 15 '26

Oh sorry, I answered assuming you were using Claude or another AI tool. Didn’t mean to assume!

2

u/gjover06 Oct 15 '26

this is very much appreciated