stateAdd adds an item to a reactive list. It creates a new array with the existing items and the new item, then updates the state.
stateAdd
const myList = state([]);stateAdd(myList, 'new item'); Copy
const myList = state([]);stateAdd(myList, 'new item');
Generated using TypeDoc
stateAdd
adds an item to a reactive list. It creates a new array with the existing items and the new item, then updates the state.