You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems JSX ppx renames className attribute to class for elements generated from uppercase components. This results in the createElement application being passed a ~class argument, which doesn't make sense as it's a reserved word.
The function applied to this argument has type
(~className: Tyxml.Html.wrap(Html_types.nmtokens)) => Tyxml_html.elt([> Html_types.div ])
This argument cannot be applied with label ~class
Should attribute mangling only be applied to elements generated from lowercase components?
The text was updated successfully, but these errors were encountered:
It seems JSX ppx renames
className
attribute toclass
for elements generated from uppercase components. This results in thecreateElement
application being passed a~class
argument, which doesn't make sense as it's a reserved word.To repro:
Error:
Should attribute mangling only be applied to elements generated from lowercase components?
The text was updated successfully, but these errors were encountered: