You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The warning is Enforce style prop value being an object (react/style-prop-object)
Is it possible to make the component be able to work with style={null} to disable inline styles?
It's not a big deal to disable warning, but style={false} is a bit confusing
The text was updated successfully, but these errors were encountered:
style={null} or style={{}} means "I don't have any custom styles that I want to apply" and style={false} means "please don't apply any styles". However, eslint is great tool that I respect and that is why style={false} is deprecated (still works). You can now use the new noStyle boolean prop for that.
The warning is
Enforce style prop value being an object (react/style-prop-object)
Is it possible to make the component be able to work with
style={null}
to disable inline styles?It's not a big deal to disable warning, but
style={false}
is a bit confusingThe text was updated successfully, but these errors were encountered: