Yeah, I don't disagree. I just wanted to show how you can use familiar frontend tools to build HTML emails.
And normally, I wouldn't even have to use a bundler for this, since I'm usually using Typescript.
Using template engines is totally valid and arguably easier to use, but I've found that I prefer to use React as a templating engine, and I thought others might be interested doing so too.
shadowtime2000
I program
Cool, but really this pattern and stuff can be used for anything, not just emails and it may be better to just use template engines instead so you don't have to use a bundler.