Skip to content

Is React 18 a prerequisite? #1311

Answered by gabrielmfern
riha asked this question in Q&A
Feb 16, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

What I would recommend you do is have a different package.json for your emails, maybe with the emails directory inside of a transactional/emails and the package.json inside of transactional, and then there use React 18 with its types.
This should work fine, at least until you render it inside of the Next app, as the rendering process for React Email is not one with React's.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@gabrielmfern
Comment options

Comment options

You must be logged in to vote
2 replies
@bentice
Comment options

@gabrielmfern
Comment options

Answer selected by gabrielmfern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants