UNPKG
@szhsin/react-accordion
Version:
alpha (1.2.0-alpha.1)
latest (1.4.3)
rc (1.0.0-rc.0)
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.2.0-alpha.1
1.2.0-alpha.0
1.1.0
1.0.1
1.0.0
1.0.0-rc.0
0.13.0
0.12.0
0.11.0
0.10.1
0.10.0
0.9.0
0.8.1
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
The complete accordion solution for React.
szhsin.github.io/react-accordion/
szhsin/react-accordion
@szhsin/react-accordion
/
dist
/
cjs
/
utils
/
useIsomorphicLayoutEffect.cjs
8 lines
(4 loc)
•
305 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
'use strict'
;
var
React
=
require
(
'react'
);
const
useIsomorphicLayoutEffect =
typeof
window
!==
'undefined'
&&
typeof
window
.
document
!==
'undefined'
&&
typeof
window
.
document
.
createElement
!==
'undefined'
?
React
.
useLayoutEffect
:
React
.
useEffect
;
exports
.
useLayoutEffect
= useIsomorphicLayoutEffect;