commercejs-nextjs-demo-store
commercejs-nextjs-demo-store copied to clipboard
React warnings for using `value` attribute
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:
We should follow best practices for form field data binding. https://reactjs.org/docs/forms.html#controlled-components