Submitting form data without client-side validation, causing API errors.
// Buggy Code
const handleSubmit = async (e) => {
e.preventDefault();
// No validation!
const response = await fetch('/api/register', {
method: 'POST',
body: JSON.stringify({ email, password })
});
// API returns 400 Bad Request with validation errors
}
// Poor UX: errors shown after API call instead of immediatelyTry submitting with empty fields or invalid data - no client-side validation!