@scaflo/use-hooks - v0.1.0
Preparing search index...
useLocalStorage
Function useLocalStorage
useLocalStorage
<
T
>
(
key
:
string
,
initialValue
:
T
,
)
:
readonly
[
T
,
(
value
:
T
|
(
(
prev
:
T
)
=>
T
)
)
=>
void
,
()
=>
void
]
Type Parameters
T
Parameters
key
:
string
initialValue
:
T
Returns
readonly
[
T
,
(
value
:
T
|
(
(
prev
:
T
)
=>
T
)
)
=>
void
,
()
=>
void
]
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@scaflo/use-hooks - v0.1.0
Loading...