Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
In react, we often use onChange
to interact between state and UI. However in semantic HTML, the binding is different. We need to use input
instead of change
.
emailInput.addEventListener("input", (event) => { // fix typescript error const { value: email } = event.target as HTMLInputElement; validateEmail() });
Community feedback
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