5 lines
231 B
TypeScript
5 lines
231 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
type RefType<T> = React.MutableRefObject<T> | ((state: T) => void);
|
||
|
|
export declare function useEffectfulState<T>(fn: () => T, deps?: React.DependencyList, cb?: RefType<T>): T | undefined;
|
||
|
|
export {};
|