toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-react-core
/
react
/
useLayoutEffectWithCleanup
use
Layout
Effect
With
Cleanup
fun
useLayoutEffectWithCleanup
(
effect
:
CleanupBuilder
.
(
)
->
Unit
)
(
source
)
fun
useLayoutEffectWithCleanup
(
vararg
dependencies
:
Any
?
,
effect
:
CleanupBuilder
.
(
)
->
Unit
)
(
source
)
Only works inside fc
See also
Hooks and Function Components