• hook providing a useState with optionally persisting the value in the local storage. Loading and saving.

    Type Parameters

    • T

      type of the state variable

    Parameters

    • prefix: string
    • key: string
    • Optional defaultValue: T | (() => T)

      the default value for the setting

    Returns [T, Dispatch<SetStateAction<T>>]

    Export

Generated using TypeDoc