API routes are not typically .tsx, but they need to be in order to render a react component like in this example. Mention this in the text
The example doesn't show how MyTemplate is imported
In the text below where the props are documented, it should document what templateName prop is
It would be also nice if sendMail could take templateName and props instead of template so if you wanted to keep plain .ts in your api routes. Since it already takes templateName, it is confusing that the
https://www.mailing.run/docs/sending-email#calling-sendmail
Current example:
Some problems with this example:
templateName
prop isIt would be also nice if sendMail could take templateName and props instead of template so if you wanted to keep plain .ts in your api routes. Since it already takes templateName, it is confusing that the