Remix.run Logo
danabramov 4 hours ago

For what it’s worth, the point of React is that you can just fix that Radio component to be an input (if that makes sense) and it’ll just be an input.

React gives you boxes to put stuff into but you decide what to put into them. Then React ensures that you can change what’s in those boxes without breaking anything. That’s the power of component abstraction.

jagged-chisel 2 hours ago | parent | next [-]

> That’s the power of component abstraction.

Yes. But React isn’t the only way to do components. Unfortunately, to the inexperienced, it is.

nine_k 15 minutes ago | parent [-]

What are some much better ways to do components?

React with is so prevalent because it's a deep local optimum.

fsniper 2 hours ago | parent | prev | next [-]

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

daveidol 35 minutes ago | parent [-]

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).

4 hours ago | parent | prev [-]
[deleted]