DEV Community 👩‍💻👨‍💻

Discussion on: I was creating Forms the wrong way all along in React.js 🤔

Collapse
 
k1dv5 profile image
Kidus Adugna • Edited on

Nice way of handling forms. We have to highlight the limitations as well though. You still need value and onChange when you want an input to update when another one is changed. Also if the form rerenders because of another component, your inputs will be cleared (happened to me with a component that shows the current time.) But for simple forms, where it's guaranteed that there will be no rerenders while you fill the form, it can save time.