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.
Using
val example by UIExampleComponent()
instead ofval 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.