UNPKG
@quirks/react
Version:
latest (0.15.0)
next (0.14.5-next.14)
0.15.0
0.14.9
0.14.8
0.14.7
0.14.6
0.14.5
0.14.5-next.14
0.14.5-next.11
0.14.5-next.10
0.14.5-next.4
0.14.4
0.14.3
0.14.2
0.14.1
0.14.0
0.13.8
0.13.7
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.0
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.2
0.9.1
0.9.0
0.8.1
0.8.0
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
github.com/nabla-studio/quirks
nabla-studio/quirks
@quirks/react
/
index9.js
15 lines
(14 loc)
•
299 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{ useStore
as
s }
from
"zustand"
;
const
n
= (
t
) => {
const
e = t; e.
use
= {};
for
(
const
o
of
Object
.
keys
(e.
getState
())) e.
use
[o] =
() =>
(
// eslint-disable-next-line react-hooks/rules-of-hooks
s
(t,
(
r
) =>
r[o]) );
return
e; };
export
{ n
as
createSelectors };