[BUG]: The style prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.
#824
Unanswered
AssylanAkhanuly
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make a functionality to add different kind of styles to text nodes just like as it appears in the example of the docs (html.tsx):
However, whenever I try to implement this:
I receive the default error from react style that it should in as an object rather than a string:
Beta Was this translation helpful? Give feedback.
All reactions