vim-jsx icon indicating copy to clipboard operation
vim-jsx copied to clipboard

Color components and elements differently

Open TrySound opened this issue 8 years ago • 3 comments

vscode introduced this feature https://twitter.com/mattbierner/status/861630591124381696 Would be good to see it in this project The difference is upper and lower case of first letter.

TrySound avatar May 09 '17 11:05 TrySound

Don't components and tags both have conceptually the same role? Moreover—are components actually required to be uppercase?

mxw avatar Jul 14 '17 00:07 mxw

Yep. Lowercase is builtin primitive like tags, which are passed as strings to createElement (in context of react). Uppercase is custom component passed as class or function. The use case is to differ builtin primitives and user components.

TrySound avatar Jul 16 '17 15:07 TrySound

I don't mind them having the same color.

hdon avatar Sep 28 '17 22:09 hdon