Value
Simple value that can be hooked into React.
Last updated
Was this helpful?
Simple value that can be hooked into React.
Last updated
Was this helpful?
Source code is hosted on GitHub
Seamless React integration is shipped in a separate package:
These packages provide extended functionality and are built on top of this library:
Create a new observable value:
Create a new observable value without the factory function:
Create a new observable value with a custom differ:
Get current value:
Update current value:
Listen to value changes:
Invoke listener immediately:
Listen with a custom differ:
Convenience method for people used to React's useState
syntax: