Replies: 1 comment
-
|
I misunderstood the setup of react-email, and thought I couldn't change that code myself 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Background
Most emails templates have some variables that are interpolated by the email service, e.g.
Hi {{ firstName }}.I would like the ability to know when react-email is showing the template in
sourcemode vsdesktopmode, so I can swap out these variables with some dummy data. This way, I could seeHi Luke Skywalkerin theDesktopmode (and email it), while seeingHi {{ firstName }}in theSourceview.In order to do this, I need to know inside my email component which mode we are in.
Proposal
Related source code
This can be accomplished with something ala the following change in the
.react-emailcodeContribute?
I can contribute
Beta Was this translation helpful? Give feedback.
All reactions