AppleSauce
    Preparing search index...

    Variable useRefFnConst

    useRefFn: <T>(init: () => T) => MutableRefObject<T>

    One-time ref init.

    Type declaration

      • <T>(init: () => T): MutableRefObject<T>
      • Type Parameters

        • T

        Parameters

        • init: () => T

          A function that returns a value. Will be called only once.

        Returns MutableRefObject<T>

        A ref object with the returned value.