UNPKG
ahooks-v2
Version:
latest (2.10.15)
2.10.15
2.10.13
react hooks library
github.com/alibaba/hooks
alibaba/hooks
ahooks-v2
/
lib
/
useSize
/
useRafState.d.ts
4 lines
(3 loc)
•
180 B
TypeScript
View Raw
1
2
3
4
import
type
{
Dispatch
,
SetStateAction
}
from
'react'
;
declare
const
useRafState
: <S>
(
initialState
: S | (() => S)
) =>
[S,
Dispatch
<
SetStateAction
<S>>];
export
default
useRafState;