UNPKG
globalbridge-lsf-custom
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
GlobalBridge in-house labeling tool, originating from LSF.
globalbridge-lsf-custom
/
src
/
utils
/
hooks.js
8 lines
(5 loc)
•
183 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
React
from
'react'
;
export
const
useRenderTime
= name => {
console
.
time
(
`RENDER TIME
${name}
`
);
React
.
useEffect
(
() =>
console
.
timeEnd
(
`RENDER TIME
${name}
`
), [name]); };