Bloomca / veles

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

allow to have to no callback function in useValue and useAttribute #29

Closed Bloomca closed 1 month ago

Bloomca commented 1 month ago

Description

Allow to have no callback function in useValue, useValueSelector and useAttribute. This is just a syntactic sugar when you want to use the value directly, e.g.:

<div>
  {taskNameState.useValue(name => name)}
</div>

Closes https://github.com/Bloomca/veles/issues/23