get back missing ref #1286
Replies: 2 comments 5 replies
-
Why do you need to use framer motion here? I think it might be very misleading to allow for refs here, as they won't do anything unless you use React's usual rendering process. |
Beta Was this translation helpful? Give feedback.
-
hi gabriel and thank you for your message.
I would like to build a visual design tool to author my emails using react-email components. the reason I'm using framer motion is to animate the state changes so when I use the color picker to change the background color, the text color, size etc. I can enjoy a smooth transition.
when I preview my email in the browser it is indeed using react rendering process where the component tree contains react-email components. but when I send the emails I recreate the tree and use render/renderAsync server side. ref are optional and used to be forwarded prior to the mentioned pr. it's not a breaking change to add them but removing them was. let me know what you think of my use case and thanks again. |
Beta Was this translation helpful? Give feedback.
-
Goals
Background
during the pr #948 all refs have been removed without any mention of why that happened. I'm using framer motion and building a simple visual email designer for my own need. I would like to animate some styles changes like text color etc.
Proposal
possible solution would look something like that
Beta Was this translation helpful? Give feedback.
All reactions