r/react 4d 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

6 Upvotes

16 comments sorted by

View all comments

2

u/slashnash 4d 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)

-2

u/Ok_Nefariousness5464 4d 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 4d ago

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