Hacker News new | ask | show | jobs
by Sysctl232 1316 days ago
Excellent direction. I'm already using React tsx email templates and ReactDOMServer.renderToStaticMarkup(). It allowed me to reuse React components and take advantage of TypeScript type checking in vscode. Existing state management code can be used inside these email templates (MobX). I've used many email template parsers but this setup has been the most optimal.