Is React 18 a prerequisite? #1311
-
I guess I should know this 😬 But is there a way of getting this to run on NextJS 12 and react 17? Or is React 18 a requirement? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I wish it wasn't, but at least for TypeScript, it is. This is because we use a specific version of React's types ourselves |
Beta Was this translation helpful? Give feedback.
-
What I would recommend you do is have a different |
Beta Was this translation helpful? Give feedback.
What I would recommend you do is have a different
package.json
for your emails, maybe with theemails
directory inside of a transactional/emails and thepackage.json
inside oftransactional
, 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.