News for hackers. Stuff that matters.
Re:React is a fractal of bad design by sli on Wednesday March 08, 2023 @04:13PM (#35074802)
If you're going to call something a footgun, make sure it's an actual footgun and not simply using a different naming convention than the one you want. You want the HTML name while React uses the Javascript name.

https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...

https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelEl...

Re:React is a fractal of bad design by mattigames on Wednesday March 08, 2023 @08:07PM (#35077082)
It is a foogun because is only for a few specificic attributes (class) that it uses this specific convention, for other attributes it uses the normal HTML attributes, for example in JavaScript to add aria labels you do stuff like "ariaLabel" when using react you have to write "aria-label" instead.