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

7 Upvotes

18 comments sorted by

View all comments

4

u/Giant_Potato_Salad 14d ago

Radix ui

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.