lui
lui copied to clipboard
Selection for node_map
Add an optional argument to node_map which allows selecting an item.
On selection change, only the unselected and selected items are updated, optimizing selection from O(n) to O(1).
Example
node_map(ListItem, list, null, 10),
...
function ListItem({ I, selected }) {}