1.0.0 • Published 6 years ago

rax-use-unmount v1.0.0

Weekly downloads
2
License
BSD-3-Clause
Repository
github
Last release
6 years ago

rax-use-unmount

Calls a function when the component will unmount.

Install

$ npm install rax-use-unmount --save

Example

import { createElement } from 'rax';
import useUnmount from 'rax-use-unmount';

export default function App() {
  useUnmount(() => {
    console.log('App will unmount.');
  });
}
1.0.0

6 years ago