Replies: 1 comment 3 replies
-
From the React blog post on the new JSX transform:
I think this also applies to the Your use case is pretty interesting. Here are the ways I can think of to implement your use case without using
But maybe there's a better way 🤷♀️. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to use
jsx
from@emotion/react
in replacement forReact.cloneElement
, in order to be able to set acss
prop for the cloned element:👉 CodeSandbox link
As you can see, everything works fine, except that props are not typed, especially
css
andtheme
.I can't find anything in the docs about that. Has anybody found a workaround?
Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions