We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally reported by @jhiswin at facebook/react#838:
-Known attributes like maxlength have to be camelcased to maxLength or whatever is in [DefaultDOMPropertyConfig] https://github.com/facebook/react/blob/master/src/dom/DefaultDOMPropertyConfig.js Might be a good idea to throw a warning/error for unknown properties, so they don't get discarded without you knowing.
-Styles should be lowercased before processing.
<input style="TEXT-ALIGN: center; WIDTH: 40px" maxlength=2 />
transpiles to:
<input style={{TEXTALIGN: 'center', WIDTH: 40}} maxlength={2} />
React.DOM.input( {style:{TEXTALIGN: 'center', WIDTH: 40}, maxlength:2} )
generates:
<input style="-t-e-x-t-a-l-i-g-n:center;-w-i-d-t-h:40px;" data-reactid=".r[2wp76]">
The text was updated successfully, but these errors were encountered:
lowercase css key names
6e9a3ab
Just lowercase all CSS keynames. CSS style keynames are case-insensitive per W3C spec. issue reactjs#8
issue reactjs#8 : case insensitive css attributes, import react's att…
62c970c
…ribute mapping into attribute map
Merge pull request #20 from jhiswin/issue_8
ec7843d
issue #8 : case insensitive css attributes, import react's attribute map...
Should now be fixed with patch #20
Sorry, something went wrong.
No branches or pull requests
Originally reported by @jhiswin at facebook/react#838:
Solution
-Known attributes like maxlength have to be camelcased to maxLength or whatever is in [DefaultDOMPropertyConfig] https://github.com/facebook/react/blob/master/src/dom/DefaultDOMPropertyConfig.js
Might be a good idea to throw a warning/error for unknown properties, so they don't get discarded without you knowing.
-Styles should be lowercased before processing.
Example
transpiles to:
transpiles to:
generates:
The text was updated successfully, but these errors were encountered: