UNPKG
@confi/conflux-react-ui-test-package
Version:
alpha (1.0.0-alpha.2)
latest (1.0.0-alpha.2)
1.0.0-alpha.2
Modern and minimalist React UI library.
conflux-react-ui.vercel.app
Conflux-Chain/react-ui
@confi/conflux-react-ui-test-package
/
dist
/
use-current-state
/
use-current-state.d.ts
5 lines
(4 loc)
•
285 B
TypeScript
View Raw
1
2
3
4
5
import
{
Dispatch
,
MutableRefObject
,
SetStateAction
}
from
'react'
;
export
declare
type
CurrentStateType
<S> = [S,
Dispatch
<
SetStateAction
<S>>,
MutableRefObject
<S>];
declare
const
useCurrentState
: <S>
(
initialState
: S | (() => S)
) =>
CurrentStateType
<S>;
export
default
useCurrentState;