Function to convert React Email Layouts to Text version.
Text version of the email in string format.
import { generateTextEmail } from '@leopardslab/react-email';import { EmailLayout } from './EmailLayout';const text = generateTextEmail(EmailLayout());console.log(text);
React email layout which needs to be converted.
Generated using TypeDoc
Function to convert React Email Layouts to Text version.
Returns
Text version of the email in string format.
Example