## TL;DR

``tsx import { Resend } from 'resend'; import { WelcomeEmail } from './emails/welcome'; const resend = new Resend(process.env.RESEND\_API\_KEY); const { data, error } = await resend.emails.send({ from: '[SENDER]', to: ['[RECIPIENT]'], subject: 'Welcome', react: WelcomeEmail({ name: '[NAME]' }), }); if (error) { console.error(error); } ``

```text
import { Resend } from 'resend';
import { WelcomeEmail } from './emails/welcome';

const resend = new Resend(process.env.RESEND_API_KEY);

const { data, error } = await resend.emails.send({
  from: '[SENDER]',
  to: ['[RECIPIENT]'],
  subject: 'Welcome',
  react: WelcomeEmail({ name: '[NAME]' }),
});

if (error) {
  console.error(error);
}
```

## Steps

1. ```tsx
import { Resend } from 'resend';
import { WelcomeEmail } from './emails/welcome';

const resend = new Resend(process.env.RESEND_API_KEY);

const { data, error } = await resend.emails.send({
 from: '[SENDER]',
 to: ['[RECIPIENT]'],
 subject: 'Welcome',
 react: WelcomeEmail({ name: '[NAME]' }),
});

if (error) {
 console.error(error);
}
```

## When to use

You are seeing this: ``tsx import { Resend } from 'resend'; import { WelcomeEmail } from './emails/welcome'; const resend = new Resend(process.env.RESEND\_API\_KEY); const { data, error } = await resend.emails.send({ from: '[SENDER]', to: ['[RECIPIENT]'], subject: 'Welcome',... Use this skill when you run into "Resend react prop: pass the component and the Node SDK renders it, and it is Node-only".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
