---
title: "Comment by Hubert Wasier on \"Steps To Build A Professional Next.js Portfolio\" | Hashnode"
description: "Nice article! But I don’t understand how you manage the form? Could you explain? Thanks. Hubert"
url: "https://hashnode.com/posts/steps-to-build-a-professional-nextjs-portfolio/62adb55ed8afe74aa51faa62/comment/62bb9231c2f205e7cdb18f4a"
---

[Discussion](https://hashnode.com/posts/steps-to-build-a-professional-nextjs-portfolio/62adb55ed8afe74aa51faa62)

Comment [Steps To Build A Professional Next.js Portfolio](https://hashnode.com/posts/steps-to-build-a-professional-nextjs-portfolio/62adb55ed8afe74aa51faa62)

[Hubert Wasier](https://hashnode.com/@Hubert974)

[Jun 28, 2022](https://hashnode.com/posts/steps-to-build-a-professional-nextjs-portfolio/62adb55ed8afe74aa51faa62/comment/62bb9231c2f205e7cdb18f4a)

Nice article! But I don’t understand how you manage the form? Could you explain? Thanks.

Hubert

[Diala Abul-Khail](https://hashnode.com/@DialaBK)

[Jul 31, 2022](https://hashnode.com/posts/steps-to-build-a-professional-nextjs-portfolio/62adb55ed8afe74aa51faa62/comment/62bb9231c2f205e7cdb18f4a#reply-62e6405b430bd1d04a8434d6)

You can use EmailJS as a tool to send emails from react/javascript to your acutal email.. all you have to do is to sign up here: [emailjs.com](https://www.emailjs.com/) and link your account with your email

now create a new template in EmailJS that matches your contact inputs.. (this is how you are going to receive data)

then use this command to install emailjs with npm: `npm install @emailjs/browser@3.6.2`

after that you can add this to your contact component as a handler function for the form:

import emailjs from "@emailjs/browser";

function sendEmail(e) { e.preventDefault(); emailjs.sendForm( "your service id --> from your Emailjs profile", "your template id --> from your Emailjs profile", e.target, "Your personal id from Emailjs profile" ); }

[Diala Abul-Khail](https://hashnode.com/@DialaBK)

[Jul 31, 2022](https://hashnode.com/posts/steps-to-build-a-professional-nextjs-portfolio/62adb55ed8afe74aa51faa62/comment/62bb9231c2f205e7cdb18f4a#reply-62e64072430bd1d04a8434dc)

[github.com/dialaabulkhail/my\_portfolio/blob/main/…](https://github.com/dialaabulkhail/my_portfolio/blob/main/pages/components/Contact.js)
