DEV Community

Discussion on: Do Whatever You Want, So Will I

Collapse
 
maybebored profile image
Mayuran

Agreed. It would be more precise to say passing unnecessary props to a component is a bad practice. Spreading props is merely a technique allowed by JS. This got me thinking, does React warn when a component receives an unexpected prop, and turns out there is a pluggable solution - github.com/airbnb/prop-types-exact