• hook providing a useState with optionally writing the value in the local storage. WRITING ONLY. Hint: you need to call "loadState" before any value will be saved!

    Type Parameters

    • T

    Parameters

    • prefix: string
    • key: string
    • defaultValue: T

    Returns [T, Dispatch<SetStateAction<T>>, (() => T), React.MutableRefObject<number>]

    Export

Generated using TypeDoc