Add react/no-object-type-as-default-prop
to react/recommended
#3863
Labels
semver-major
Breaking change.
react/no-object-type-as-default-prop
to react/recommended
#3863
I propose to add the rule
react/no-object-type-as-default-prop
at least withwarning
if noterror
to thereact/recommended
set.Reason: I don't see a good reason not to enable it. It helps you not to fall into the trap of endless rendering. I even had a case where I wrote a component which just seemed to fail in my test environment, but just because this was the only place I didn't set the prop which had an object as default.
If you see a reason not to enable this, I'm thrilled to hear!
The text was updated successfully, but these errors were encountered: