Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I make a mailto that goes to link with email inside of it

I want to make a mailto, but the mailto has to href to "mailto:{item.email}" but ofcourse that is not possible, how can I do this?

{data?.entry.people.map(item => (
            <div key={item.id}>
              <BigText>
                {item.firstName} {item.lastName}
              </BigText>
              <Paragraph>{item.job}</Paragraph>
              <Paragraph>{item.phone}</Paragraph>
              <Paragraph>
                <Link href="mailto:{item.email}">{item.email}</Link>
              </Paragraph>
              <Link href={item.linkedin} target="_blank" rel="nofollow">
                Linkedin
              </Link>
            </div>
          ))}

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can do it with template literals es6

<Link href={`mailto:${item.email}`}>{item.email}</Link>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading