Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 11 months ago

Responsive contact form using Tailwind CSS

react, tailwind-css, typescript
Luiz Carlos Jr.•90
@lucarl07
A solution to the Contact form challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm definetly proud of using fresh resources (TS & Tailwind) on this project but at the same time, not relying heavily on fancy dependencies and writing all the logic with straight-up TypeScript code. However, i shall try to properly structure and write the logic before full-on focusing on stylizing the page.

What challenges did you encounter, and how did you overcome them?

I'd say they were mostly architectural: i had almost a headache when trying to use a single, custom hook to handle input values & errors while not use to some "barriers" TypeScript imposes on React. However it was a part of the process, and re-writing some code (specifically, the hook, now 2 separate hooks) from scratch really helped me out.

What specific areas of your project would you like help with?

Is professional, adequate Form validation on React this boring? I mean, i know React for a year now and I don't know if I underestimated this project's scale, but to be more specific:

I want to know if the approach i used to handle the Form on App.tsx is good enough, in a code-wise than markup-wise sense.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Luiz Carlos Jr.'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License