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
{{ message }}
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.
Another reason I can see this being very useful is, when doing a quick code scan, singling out true vs false will be much easier.
<Buttoncolored={true}ripple={false}accent={true}>
// vs
<Buttoncoloredripple={false}accent>
If changed, a separate discussion is whether "true" should be the default value for anything. Considering <Button ripple> makes it very clear that we are adding functionality rather than <Button ripple={ false }> to turn it off
I agree with removing the boolean values in jsx. I was forcing them in personal projects but the more I use them, the more I want them removed as well.
But yes, it would mean that all booleans should be false by default.
The only one that isn't false is the ripple effect, because I think people usually add it since it's part of the MDL so I thought I could save that to users
Want to open discussion on using the implicit attr=true syntax
Example:
As HTML generally accepts the former, and is much less verbose, I think having the implicit form would be appropriate
The text was updated successfully, but these errors were encountered: