User sign up form
Objective
Create a user sign-up form in React
Requirements
Create a React component called SignUpForm
The component should display a form with inputs for the user to enter their
Name
Email address
Password
Implement basic client-side validation
All 3 elements are required
Password must contain at least 7 characters, and include numbers, capital letters, lowercase letters, and symbols
On successful form submission, display a success message
For styling, use CSS or a UI library (e.g. bootstrap or tailwind, your choice)
You should not use any React component libraries (ie formik)
You can use either JavaScript or TypeScript
Evaluation Criteria
If I gave you this test, here's what I'd be looking for:
This is a middling-difficulty test, there's no design to follow and no APIs to deal with. For an average mid-weight developer, it should take an hour or two to complete.
Completeness (the test should be implemented correctly)
Validation
All fields should be validated with suitable error messages
General user experience
Error messages should be clear when validation fails, ideally, all fields should be validated together (rather than the name field failing, then the user fills it in and the email field fails)
Clear & obvious success message on completion
The styling doesn't look terrible (though there was no design to follow, it still shouldn't look horrible)
Accessibility best practices like a good use of labels and ARIA
TypeScript (if used)
Proper type annotations and interfaces