Equivalent of babel-plugin-react-html-attrs #9327
Labels
Out of Scope
This idea sits outside of the TypeScript language design constraints
Suggestion
An idea for TypeScript
When using React and .tsx, keywords
class
andfor
should be replaced byclassName
andhtmlFor
.Babel features a plugin that allows the keywords
class
andfor
. Advantages:Would be nice to have the same feature with TypeScript.
Note: currently when writing
class
instead ofclassName
, no error is given: the resulting HTML silently remove anyclass
attribute.Related to #6843, #5595
The text was updated successfully, but these errors were encountered: