Wednesday, September 14, 2022

Contact form errors and solutions in React

for => htmlFor

Warning: You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.

Solution: In contact-from.jsx change checked to defaultChecked.

No comments:

Post a Comment