Reference

EffectCallback

Effect callback that may return a cleanup function.

Signature

type EffectCallback = (): void | (): void