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
source
mode vsdesktop
mode, so I can swap out these variables with some dummy data. This way, I could seeHi Luke Skywalker
in theDesktop
mode (and email it), while seeingHi {{ firstName }}
in theSource
view.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-email
codeContribute?
I can contribute
Beta Was this translation helpful? Give feedback.
All reactions