React.js, css modules (layout built with flexbox),javascript
Design comparison
Solution retrospective
I'm new to learning react, the focus of this project was on {useState} hook. As you can see, I created a new state variable for the validity of each of the input fields. My gut tells me theres a faster way but I just havent learned it yet.
For anyone who is more experienced with React, how could I have shortened my code? I'm planning on learning about context, useReducer, useRef soon. I think some of these will definitely be used to shorten my code in the future.
Also, i added in an extra condition for validating the password, it must contain at least 2 numbers.
Other than that, all comments welcome.
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