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

Responsive Contact-form and toaster with react, BEM, and Typescript

bem, typescript, vite, react
Fernando A. Malfavón•370
@Wlfernando
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 like all the project. I feel I did fantastic in overall. The html uses grid in most of the cases, allowing a very fine organized DOM and it also have a good semantic HTML. The form handle the validation first, if all is correct, then pass the action to the component Contact-us to handle the action. The submit generate a success toaster with sound, that least 4s on the screen, then it is removed from the DOM.

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

I tried to cancel the event focus when the event change was fire but I didn`t know how to do so without addeventlister.

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

is there a way to cancel events only using event handler attribute?

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 Fernando A. Malfavón'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

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