This article provides the perfect view into React brain worms:
Instead of a native HTML input radio element
It’s somehow easier to import hundreds of lines of code, and implement a faux radio button (that’s actually a button with svg to LOOK LIKE A RADIO), and ARIA rules (to WORK LIKE A RADIO)
The Incredible Overcomplexity of the Shadcn Radio Button
👉 https://paulmakeswebsites.com/writing/shadcn-radio-button/
#react #webdev