6 lines
187 B
TypeScript
6 lines
187 B
TypeScript
|
import * as React from 'react';
|
||
|
/**
|
||
|
* A React.useEffect equivalent that runs once, when the component is mounted.
|
||
|
*/
|
||
|
export default function useOnMount(fn: React.EffectCallback): void;
|