Design comparison
SolutionDesign
Solution retrospective
Good project to practice React, basic form validation, and mobile styling.
Community feedback
- @daniel-bardaPosted 12 months ago
Good job 😊.
I recommend using guard clauses in case the user doesn't enter anything in the email input.
function handleSubmit(e) { e.preventDefault(); if (!emailInput) return setIsValidEmail(false); setShowSuccessModal(true); }
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin 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