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
I can confirm that this error for Web Components occurs even in React v15:
Error: The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.
I will work on a fix to ensure that attributesToProps will transform style string into an object for custom elements.
Expected Behavior
render web component correctly
Actual Behavior
throw error on build
Reproducible Demo
https://codesandbox.io/s/html-react-parser-forked-vll1t
Environment
The text was updated successfully, but these errors were encountered: