UseOnUnmountExample
src/prod/reactplus/useOnUnmount.ts
import React from 'react'; export const useOnUnmount = (callback: (() => void)) => { React.useEffect((): (() => void) => { return callback; }, []); return 0; };
dist/prod/reactplus/useOnUnmount.js
import React from 'react'; export const useOnUnmount = (callback) => { React.useEffect(() => { return callback; }, []); return 0; };
src/prod/reactplus/useOnUnmount.ts
import React from 'react'; export const useOnUnmount = (callback: (() => void)) => { React.useEffect((): (() => void) => { return callback; }, []); return 0; };