Responsive Single Page Application | React | Tailwind | Vite
Design comparison
Solution retrospective
Hello Developers👋
I enjoyed building every part of this project. Creating the responsive navbar along with dropdown navigation links was so much fun. React, react-router-dom are simply awesome!
Please DO NOT FORGET to checkout the login functionality 😄
As always, I'd really appreciate if you could answer the following:👇
1.What did I do wrong? 2.What did I do right? 3.How can I improve? common mistakes?
🙏Thanks in advance Happy Coding😄
Community feedback
- @EileenpkPosted almost 2 years ago
Hi Tushar! your project looks great, I found it very clean and easy to read. I agree, react-router-dom is awesome! I checked the login functionality, and I found that, while it wouldn't let me just use test as an email because it was missing the @ symbol, test@ passed with no endpoint. While the
<input type='email' >
gives you some built-in validation, it might not be as robust as you would like. It might be helpful to add something like this for form validation on an email.function validateEmail(email) { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email.value)) { return (true) } alert("You have entered an invalid email address!") return (false) }
If you found this helpful please mark it as such :) Let's connect on LinkedIn! www.linkedin.com/in/eileen-dangelo
Marked as helpful1@itushPosted almost 2 years ago@Eileenpk Hello Eileen, Thank you very much for the feedback. I'm so glad to hear that the code was very clean and easy to read for you. Actually I selected this project to build a Single-Page-Application using react and react-router-dom. I couldn't agree more that JavaScript client-side-validation using RegExp is always more robust than built-in HTML validation. In fact, I've used something similar in one of my previous projects. But for this project I wanted to rely on basic HTML validation 😁😁😁
Looking forward to receive more feedback from you in future. Happy Coding😄
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