A small React 19 + Vite 7 app that previews a collection of email templates. The templates live in src/components/templates and are imported as raw strings using Vite's ?raw query inside TemplateDemo.jsx.
- Node.js 18+ (recommended 20+)
- Your choice of package manager (Yarn, npm, pnpm)
Using Yarn:
yarn install
yarn devUsing npm:
npm install
npm run devYarn:
yarn build
yarn previewnpm:
npm run build
npm run previewsrc/components/TemplateDemo.jsx— the preview UI that loads templates via?rawand renders them in a sandboxed iframesrc/components/templates/— email HTML templates and a shareddefault_style.css
This project is licensed under the MIT License. See the LICENSE file for details.