UNPKG

react-elegant-ui

Version:

Elegant UI components, made by BEM best practices for react

8 lines (7 loc) 289 B
import { Ref } from 'react'; /** * Manager of ref value. It update ref value and set `null` by unmount * * It useful when you wish use consistent ref to something inside your component */ export declare const useRefHost: <T extends unknown>(ref: Ref<T> | undefined, value: T) => void;