DEV Community 👩‍💻👨‍💻

Discussion on: How To Create Forms In React ? - Controlled Inputs & Material UI

cyberwolves profile image
CyberWolves Author

I have used class components because it makes our code less and clean. Accessing parent functions in class component is easy as cake and if we want to change something in future there is only place to modify.

piotrlewandowski profile image
Piotr Lewandowski

"it makes our code less and clean" - it's exactly the opposite - functional components create less footprint - both in a source code and in transpiled code, no more 'this' confusion, they're much easier to read and to test them...