top | item 46691987

(no title)

fsniper | 1 month ago

So is a span or div element? What am I missing here?

discuss

order

daveidol|1 month ago

The parent comment is seemingly blaming React for the decisions of Shadcn for some reason.

There’s nothing about React that requires you to overcomplicate your DOM (unlike many other UI frameworks).

danabramov|1 month ago

The point I wanted to emphasize is that even if you do overcomplicate your DOM, the component abstraction is what allows you to fix it in one place. Don't like what's in your component — add `return <input />`, bam! It's fixed across the entire app now.