UNPKG
@while-and-for/tremor-react
Version:
latest (0.0.1-development)
0.0.1-development
0.0.0-development
The React library to build dashboards faster.
github.com/tremorlabs/tremor
tremorlabs/tremor
@while-and-for/tremor-react
/
dist
/
hooks
/
useInternalState.js
2 lines
(1 loc)
•
129 B
JavaScript
View Raw
1
2
import
{useState
as
t}
from
"react"
;
const
o
=(
o,r
)=>{
const
e=
void
0
!==r,[a,c]=
t
(o);
return
[e?
r
:a,
t
=>
{e||
c
(t)}]};
export
{o
as
default
};