FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javaistic/src/hooks/useIsomorphicLayoutEffect.js at v1 · javaistic/javaistic · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
javaistic
/
javaistic
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
23
Star
75
Code
Issues
4
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
javaistic
/
src
/
hooks
/
useIsomorphicLayoutEffect.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
3 lines (2 loc) · 153 Bytes
Breadcrumbs
javaistic
/
src
/
hooks
/
useIsomorphicLayoutEffect.js
Copy path
File metadata and controls
3 lines (2 loc) · 153 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
import
{
useEffect
,
useLayoutEffect
}
from
'react'
export
const
useIsomorphicLayoutEffect
=
typeof
window
!==
'undefined'
?
useLayoutEffect
:
useEffect
Back
|
FazBrowse Home
|
New Git URL