Skip to content
Submitted 1 day ago

Basic contact form using React

react
LVL 2
@akanji-00
A solution to the Contact form challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?
  1. Practicing building basic react-powered form.
  2. I should learn to use tailwind css for my styling.
What challenges did you encounter, and how did you overcome them?
  1. Setting up and validating the error fields: I just figured it out.
  2. The name fields being of two variables, firstName and lastName: I realised I had to create key and value pair seperately in my initialState object.
  3. Styling was a bit weird for me, as I try to use a lot of helper classes but it ended up getting me confused. So in the end my code is a mashup of helper class style and generic css styling. I should learn to use tailwind, especially when working with react.
What specific areas of your project would you like help with?

Any areas requiring constructive critic. Also I wouldn't mind ideas to make the code more scalable and reusable.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on akanji-00’s solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord