DEV Community

Discussion on: Do Whatever You Want, So Will I

Collapse
 
kravemir profile image
Miroslav Kravec

The issue isn't just in passing of unnecessary props. That's just a performance micro-optimization, which can be done later,..

Spreading props also allows to hide high amount of tight coupling, and such code looks simple on first sight, and falsely KISS. However, a new developer has to trace and inspect lots of components/layers in order to understand data/control flow of such code.