| ▲ | sam_lowry_ 2 hours ago | |
Bingo! For the "requirement of being able to put any element as the radio button.", Dan Abramov tells you that this is exactly the point of React, see his comment above: > 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. [0] | ||
| ▲ | chrismorgan a minute ago | parent | next [-] | |
You’re misunderstanding. This isn’t about React, it’s the Radix UI primitives library which is being overcomplicated by it allowing you to put any element as the visual part of the radio button. As for “the point of React” being that you can just do such and such… there’s nothing special about React there, that’s what any of these component libraries achieve (React, Vue, Svelte, &c., even basic templating systems like Handlebars a lot of the time). | ||
| ▲ | stephenr an hour ago | parent | prev [-] | |
Quite an ironic use of the word "fix" there. | ||