UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

7 lines (6 loc) 215 B
import * as React from 'react'; /** * A React.useEffect equivalent that runs once, when the component is mounted. * @ignore - internal hook. */ export declare function useOnMount(fn: React.EffectCallback): void;