@dxos/react-ui
Preparing search index...
hooks/Hooks
useStateWithRef
Variable useStateWithRef
Const
useStateWithRef
:
<
T
>
(
valueProp
:
T
,
)
=>
[
T
,
Dispatch
<
SetStateAction
<
T
>
>
,
RefObject
<
T
>
]
Like
useState
but with an additional dynamic value.
Type declaration
<
T
>
(
valueProp
:
T
)
:
[
T
,
Dispatch
<
SetStateAction
<
T
>
>
,
RefObject
<
T
>
]
Type Parameters
T
Parameters
valueProp
:
T
Returns
[
T
,
Dispatch
<
SetStateAction
<
T
>
>
,
RefObject
<
T
>
]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@dxos/react-ui
Loading...
Like
useStatebut with an additional dynamic value.