rax-use-unmount

1.0.0 • Public • Published

rax-use-unmount

npm package

npm downloads

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.');
  });
}

Readme

Keywords

none

Package Sidebar

Install

npm i rax-use-unmount

Weekly Downloads

0

Version

1.0.0

License

BSD-3-Clause

Unpacked Size

3.07 kB

Total Files

6

Last publish

Collaborators

  • solojiang
  • rax-publisher