useUnmount
FunctionuseUnmount(fn: () => any): voidReact lifecycle hook that calls a function when the component will unmount.
Parameters
| Parameter | Type | Notes |
|---|---|---|
fn | () => any | example: |
Returns
voiduseUnmount(fn: () => any): voidReact lifecycle hook that calls a function when the component will unmount.
| Parameter | Type | Notes |
|---|---|---|
fn | () => any | example: |
voidWas this page helpful?
Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.