List
Simple list that can be hooked into React.
Last updated
Simple list that can be hooked into React.
Last updated
Source code is hosted on GitHub
Seamless React integration is shipped in a separate package:
There is a version of this package that syncs directly to the localStorage
:
Creates a new instance of observable list:
Create a new instance without the factory function:
Create a new instance with a custom differ:
Retrieve everything from the list:
Retrieve a value at the specific index:
Replace everything in the list:
Append some new values to the list:
Add a value at the specific index:
Check if a specific value is in the list:
Check if there is a value at the specific index:
Remove a value from the list:
Remove value at the specific index:
Get index of a specific value:
Filter values in the list:
Map values in the list:
Iterate over values in the list:
Listen to changes:
Invoke listener immediately:
Listen with a custom differ:
Convenience method for people used to React's useState
syntax: