Skip to content
Discussion options

You must be logged in to vote

how about with something like:

const [markup, setMarkup] = useState<string>();

useEffect(() => {
  (async () => {
    setMarkup(await renderAsync(<Customized customerName={name} />)
  })();
}, [debouncedName]);

TLDR: Use this alongside upgrading @react-email/render to canary that improved the renderAsync function and import from it to make sure it uses the proper version.

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
4 replies
@mamlzy
Comment options

@mamlzy
Comment options

@gabrielmfern
Comment options

@gabrielmfern
Comment options

Comment options

You must be logged in to vote
8 replies
@gabrielmfern
Comment options

Answer selected by mamlzy
@mamlzy
Comment options

@gabrielmfern
Comment options

@mamlzy
Comment options

@mamlzy
Comment options

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