-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels