News for hackers. Stuff that matters.
Re:Guide to JavaScript Frameworks by dsego on Friday January 26, 2018 @01:43PM (#16241738)
for and class are not reserved in HTML, they are in JS, but why would that matter for JSX?
Re:Guide to JavaScript Frameworks by mlsarecmg on Monday January 29, 2018 @01:34PM (#16259535)

    const { for, class } = this.props
Will crash. It's just a bit inconvenient (and inconsistent for beginners) having to write:

    const { for: forHtml, class: className } = this.props
Some react-like libs do allow it, but the dom api takes offcial precedence, so it's all fine. It's just that HTML in general was made without taking all the things into account we demand of it today. It wasn't even made for imperative inflating, so the dom-api faced the same troubles.