5 lines
No EOL
186 B
TypeScript
5 lines
No EOL
186 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; |