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

Encourage use of by instead of = #54

Open
Johni0702 opened this issue Apr 14, 2022 · 0 comments
Open

Encourage use of by instead of = #54

Johni0702 opened this issue Apr 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Johni0702
Copy link
Contributor

Using val example by UIExampleComponent() instead of val example = UIExampleComponent() has the huge advantage that the inspector can show the name of the component.
We should explain this in the docs somewhere, and consistently make use of it in all example code.

@Johni0702 Johni0702 added the enhancement New feature or request label Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant