@xylabs/sdk-react
Preparing search index...
useResetState
Variable useResetState
Const
useResetState
:
<
T
>
(
resetValue
:
T
)
=>
[
T
,
Dispatch
<
SetStateAction
<
T
>
>
]
A state that resets each time the initial value is changed
Type Declaration
<
T
>
(
resetValue
:
T
)
:
[
T
,
Dispatch
<
SetStateAction
<
T
>
>
]
Type Parameters
T
Parameters
resetValue
:
T
Returns
[
T
,
Dispatch
<
SetStateAction
<
T
>
>
]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@xylabs/sdk-react
Loading...
A state that resets each time the initial value is changed