-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Custom elements children
prop gets coerced to string
#5088
Comments
Dup of #4933 |
You can use However, the |
children
attribute renders incorrectly
children
attribute renders incorrectlychildren
prop gets coerced to string
Should not coerce children prop on custom elements to a string. Fixes #5088
…coercion Should not coerce children prop on custom elements to a string. Fixes facebook#5088 (cherry picked from commit a2d26c8)
Hello,
In React 0.13.3 HTML5 custom tags were rendered fine. For example:
would render:
Since I am in the process of migrating to v0.14.0 i saw that the above renders like this:
I can set in the JSX the property to be
class
instead ofclassName
and it will render withclass
attribute in the custom tag, but I am afraid this is not the intended behavior. If this is the intended behavior please close the issue and give me some documentation, because I tried to find something related to this for the last 5 hours.The text was updated successfully, but these errors were encountered: