Design comparison
Solution retrospective
I tried to use React and get used to it
What challenges did you encounter, and how did you overcome them?I cannot change the border to red when there are errors -- I tried adding class "error" but it couldn't fix.
Also, I have no idea how to add error icon in the input box
So I haven't overcome them yet
What specific areas of your project would you like help with?More knowledge about react, and also advice on the challenge I'm facing
Community feedback
- @JunbolPosted 6 months ago
Hi Cie, look nice but you need to add validation for your name and last name for that you need this regular expression: (!/^[A-Za-z]+$/.test(firstNameValue)) you add that to your if statement and it will work test(lastNameValue)) for last name.
test: after testing your inputs: name, last name and password failed
let me know if you are stuck
Good luck! Junier
Marked as helpful1@cie-cretPosted 6 months agoHi @Junbol, I've updated the validation part (but I'm using a different expression as I didn't use vanilla JS in this project😅). But I hope this can fix the errors likewise.
Thanks for your advice, I'll note that for my next project as well :)
0
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