ES6 - mailto with template literal

0 votes
1,340 views
added May 16, 2019 in ES6 by LC Marshal Captain (25,770 points)
const mailToShare = '';
<a href={`mailto:${mailToShare}`}><img className="mb-3" src={EmailIcon} /></a>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...