-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
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
why interweave transform attributes to lowercase? #260
Comments
Attributes are HTML attributes, which are lowercase. If you are converting an HTML element into a React component, you'll need to remap it to props manually. |
Then is it possible to pass raw attributes too in HTMLElement node? |
Not sure I follow? Just do this:
|
I am trying to create an HOC component. For it i need the ability to forward any attributes to the tag. The problem is that there are a lot of options in react, which can be different: className, tabIndex, defaultChecked, itemScope, itemType, etc. And listing them all by hand seems like a crutch |
You only need to write this once, it's only a couple of lines. This won't be changing. |
Good afternoon. Can you please tell me why interweave transforms all attributes to lowercase?
I am trying to do something like this, for not to describe each attribute by hand:
And got this:
Warning: Invalid DOM property `classname`. Did you mean `className`?
The text was updated successfully, but these errors were encountered: