Bloomca / veles

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

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

Closed Bloomca closed 5 months ago

Bloomca commented 5 months 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