When running on the browser, to properly support Safari and browsers running on iOS, you will
need to polyfill the ReadableByteStreamController API.We recommend npm i web-streams-polyfill,
and it can be applied as follows in some sort of root file for your website:
Plain text versions of emails are important because they ensure that the message can be read by the recipient even if they are unable to view the HTML version of the email.This is important because not all email clients and devices can display HTML email, and some recipients may have chosen to disable HTML email for security or accessibility reasons.Here’s how to convert a React component into plain text.
Copy
import { MyTemplate } from './email';import { render } from '@react-email/render';const text = await render(<MyTemplate />, { plainText: true,});console.log(text);