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
style={color: 0xfff} seems pretty natural as js allows 0xfff. I like that notation better than using a string '#fff'. There wouldn't be a time when you'd give color a single pixel value (ie color: 4095px would never happen, so it should be safe)
Actually to use this notation of passing a number as a color, you'd have to enforce always using 6 digits, as you wouldn't know the difference between 0xfff and 0x000fff.
The text was updated successfully, but these errors were encountered:
style={color: 0xfff}
seems pretty natural as js allows0xfff
. I like that notation better than using a string'#fff'
. There wouldn't be a time when you'd give color a single pixel value (iecolor: 4095px
would never happen, so it should be safe)Actually to use this notation of passing a number as a color, you'd have to enforce always using 6 digits, as you wouldn't know the difference between
0xfff
and0x000fff
.The text was updated successfully, but these errors were encountered: