UNPKG
@d3vtool/hooks
Version:
latest (7.0.0)
7.0.0
6.6.2
6.6.1
6.6.0
6.4.2
6.4.1
6.4.0
6.3.4
6.3.3
6.3.2
6.3.1
6.3.0
6.2.1
6.2.0
6.1.0
6.0.0
5.3.0
5.2.13
5.2.12
5.2.11
5.2.10
5.2.9
5.2.8
5.2.7
5.2.6
5.2.5
5.2.4
5.2.3
5.2.2
5.2.1
5.2.0
5.1.1
5.1.0
5.0.1
5.0.0
4.2.0
4.1.2
4.1.1
4.1.0
4.0.0
3.0.0
2.0.3
2.0.2
2.0.1
2.0.0
1.9.4
1.9.3
1.9.2
1.9.1
1.9.0
1.8.0
1.7.1
1.7.0
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Collection of custom React hooks to simplify tasks in your React projects.
@d3vtool/hooks
/
dist
/
useSecId
/
index.js
2 lines
(1 loc)
•
196 B
JavaScript
View Raw
1
2
"use strict"
;
import
{
SecId
as
i}
from
"@d3vtool/secid"
;
import
{useCallback
as
c}
from
"react"
;
export
function
useSecId
(
r,e
){r===
void
0
&&(r=
8
);
var
o=
c
(
function
(
){
return
i.
generate
(r,e)},[r,e]);
return
o}