CleanupFunc
class CleanupFunc
Interface for the onCleanup function: use onCleanup to define the cleanup function for your useEffect hook.
Interface for the onCleanup function: use onCleanup to define the cleanup function for your useEffect hook.