Options
All
  • Public
  • Public/Protected
  • All
Menu

Module hooks/local-storage.hook

Index

Functions

  • hooks/local-storage.hook<T>(__namedParameters: { defaultValue?: T; key: string }): readonly [T, (value: T | ((previousState: T) => T)) => void]
  • Type parameters

    • T: string

    Parameters

    • __namedParameters: { defaultValue?: T; key: string }
      • Optional defaultValue?: T
      • key: string

    Returns readonly [T, (value: T | ((previousState: T) => T)) => void]

Generated using TypeDoc