sendEmail = () => {
window.open("mailto:support@example.com?subject=SendMail&body=Description");
};
return (
<div className="App">
<button
type="button"
className="btn btn-danger"
onClick={this.sendEmail}
>
Send email
</button>
</div>
);
I wrote my code in ReactJs but I am getting the blank screen. Please help.