Type Alias EffectFunction

EffectFunction: () => void | CleanupFunction

The effect function to run. Can optionally return a cleanup function which is called before effect function is called again and on effect destruction.

Type declaration