EssentialGG / Elementa

A simple, declarative GUI library for Minecraft
GNU Lesser General Public License v3.0
351 stars 30 forks source link

Encourage use of `by` instead of `=` #54

Open Johni0702 opened 2 years ago

Johni0702 commented 2 years ago

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.