Bloomca / veles

UI library with main focus on performance
https://bloomca.github.io/veles/
MIT License
47 stars 0 forks source link

Allow to pass nothing to `useAttribute()` #23

Closed Bloomca closed 4 months ago

Bloomca commented 4 months ago

I assume a lot of time it will contain a number/string/whatever, and writing state.useAttribute(value => String(value)) feels very redundant. This is a small syntactic sugar which should make it less verbose without doing anything magical.