JSFiddle - React, Tailwind, and code Playground

by KomathiKarunakaran

HTML

<button type="button" onclick="called()">
TEst
</button>

JavaScript

function called() {
	window.location.href = "mailto:[email protected]?subject=Subject&body=message%20goes%20here";
}