Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color components and elements differently #135

Open
TrySound opened this issue May 9, 2017 · 3 comments
Open

Color components and elements differently #135

TrySound opened this issue May 9, 2017 · 3 comments

Comments

@TrySound
Copy link

TrySound commented May 9, 2017

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.

@mxw
Copy link
Owner

mxw commented Jul 14, 2017

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

@TrySound
Copy link
Author

TrySound commented Jul 16, 2017

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.

@hdon
Copy link

hdon commented Sep 28, 2017

I don't mind them having the same color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants