• Stores a string item into localStorage.

    Parameters

    • key: string

      the item's key

    • data: string

      the item's data

    Returns void