4 ms·
> jsx attribute renaming (ex. className="foo" => class="foo") That annoys everybody. It's that way because the JSX attributes map directly onto the DOM attrib
by grayrest 12y ago
> jsx attribute renaming (ex. className="foo" => class="foo")
That annoys everybody. It's that way because the JSX attributes map directly onto the DOM attributes which in turn are named that way to avoid ES3 reserved keywords. It's supposed to be less magic/surprising but far more people interact with JSX (e.g. designers) than work with raw DOM manipulation.