commercejs-nextjs-demo-store icon indicating copy to clipboard operation
commercejs-nextjs-demo-store copied to clipboard

React warnings for using `value` attribute

Open robbieaverill opened this issue 2 years ago • 0 comments

In the checkout page we use set the value attribute directly on form fields without providing an onChange handler. This results in a number of React warnings in the console:

image

We should follow best practices for form field data binding. https://reactjs.org/docs/forms.html#controlled-components

robbieaverill avatar Sep 16 '21 00:09 robbieaverill