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