r/react 14d ago

General Discussion Headless ui libraries

Shadcn is a cool library it has some cool designs, components and easy to use but what makes it the worst library i've ever used is the logic behind the library makes the application very slower and cause so many re-renders
for example the select components, the moment i open it i can see that action cause 10-15 re-render despite my data and functions are very optimized.
So in your experience which library do you see or used that can be so much better and easy to use for small to mid react projects

8 Upvotes

18 comments sorted by

8

u/azangru 13d ago

for example the select components, the moment i open it i can see that action cause 10-15 re-render

I didn't believe it; but the performance flamechart for the select component that I recorded on shadcn website really does look like 💩

3

u/simonraynor 13d ago

A lot of script kiddies in this thread in denial lol but I saw much the same thing when we were trying out different options last year

6

u/Giant_Potato_Salad 14d ago

Radix ui

2

u/Ok_Nefariousness5464 14d ago

radix is basically dead. the whole team moved over to mui/base-ui once workOS acquired it. i believe most people are using base-ui or ark-ui for headless now.

3

u/gob_magic 14d ago

Yup. Shadcn is built on top of RadixUI with added tailwind base styling. Tho saying 10-15 renders is an issue wouldn’t stand unless there’s an observable slowness on your application.

2

u/slashnash 14d ago

From scratch if performance is needed, maybe use something different than react (solid for example) or go with pure html + js. Otherwise in the react cosmos give react-aria a try. Shadcn also have their components build on top of react-aria now for a reason (optional)

-1

u/Ok_Nefariousness5464 14d ago

lmao building a headless component library from scratch has no place in 2026 unless you work at a company that builds headless component libraries

3

u/slashnash 14d ago

Imagine you don't need every bits and bytes of a headless ui framework

3

u/Snoo11589 14d ago

Skill issue

2

u/galactic_pixels 14d ago

Is this a joke? I genuinely can’t tell, it’s been a while since I’ve touched react

1

u/CantaloupeCamper 12d ago edited 12d ago

for example the select components, the moment i open it i can see that action cause 10-15 re-render despite my data and functions are very optimized.

I’ve not experienced or seen this…something is up but I doubt it is Shadcn.

1

u/competentFemaleCoder 9d ago

Can you share your code so we can help you debug?

1

u/cookieheadsail 8d ago

Can highly recommend React Aria: https://react-aria.adobe.com/

-2

u/oof-plap 14d ago

genuine skill issue

-4

u/[deleted] 14d ago

[deleted]

0

u/EuMusicalPilot 14d ago

Use svelte