Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Latest commit

 

History

History

useUnmount

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

useUnmount

Demo

Hook that calls a function after the component is unmounted.

Example

import React from 'react';
import { useUnmount } from 'react-essential-tools';

const Demo = () => {
  useUnmount(() => alert('UNMOUNTED'));

  return null;
};