Function usePersistentState

  • Custom hook to manage state and sync it with sessionStorage. This can be used to track setting changes except for audio and music, which are handled in their own hooks.

    Type Parameters

    • T

    Parameters

    • key: string
    • defaultValue: T

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

Generated using TypeDoc