@nkeff/cardboard-js
    Preparing search index...

    Function stateAdd

    • 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.

      Type Parameters

      • T

      Parameters

      Returns void

      const myList = state([]);
      stateAdd(myList, 'new item');