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