Replies: 2 comments 2 replies
-
Nice idea! The problem is getting the compatibility with types, I'll have to take a deeper look on that. |
Beta Was this translation helpful? Give feedback.
1 reply
-
were you able to run react-email with preact? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Background
This might already work, I need to dig in more but using react-emails with preact would be amazing.
Currently my team uses react-emails with Deno and its notoriously hard to work with types from React.
We are adding a "pragma"
// @deno-types="npm:@types/react"
at the start of every file.If you use preact (usually a drop in replacement) they actually export the types properly and all the silliness goes away.
Proposal
Document an example usage with preact and its limitations.
Im sure 100% of features may not work and I also think thats ok!
Considering these render to static HTML and not async, suspenseful, Next-js style web apps I would be very happy to have some features just not work.
Beta Was this translation helpful? Give feedback.
All reactions