Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

Responsive Card Details Page Using ReactJS

atanasov36•660
@AtanasovCode
A solution to the Interactive card details form challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Site built using ReactJS and the useState hook.

I made the site so that the card details auto-update as you type them in the input form. One thing I failed to achieve was have specific error messages for specific errors that might happen in the inputs.

Instead, I made it so that only numbers can be entered in the fields where numbers are required and only letters can be entered in the name input field.

I would like to hear some feedback on how I can improve my code! Also, if you notice any design errors please tell me so I can fix them right away.

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 atanasov36'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