Once compiled into a bundle, the file can be imported and passed to render such like:
import { render } from 'jsx-email';import { Template } from './.compiled/batman.js';const html = render(<Template />);
Note that whether or not to use a file extension in the import depends on your project’s settings. When using TypeScript you may have to adjust types to avoid errors, using this method.